#031F2F

Closest named color: Rich Black (#0D1B2A). oklch(22.7% 0.046 237.6), rgb(3, 31, 47).

Aa

White text reads best on this color (16.92:1).

About this color

#031F2F is a very dark, muted blue. In OKLCH its lightness is 23%, its chroma 0.046 and its hue 238°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.017 away. White text reads best on it, at 16.92:1.

Hue familyBlues
Lightnessvery dark (23%)
Chromamuted (0.046)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.24:1
White text16.92:1

Values

HEX#031F2F
RGBrgb(3, 31, 47)
HSLhsl(202, 88%, 10%)
OKLCHoklch(22.7% 0.046 237.6)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #031F2F 16.92:1 AAA Lc -106.1 Preferred for body text
Black text on #031F2F 1.24:1 Fails Lc 0.0 Not readable
#031F2F text on white 16.92:1 AAA Lc 103.7 Preferred for body text
#031F2F text on black 1.24:1 Fails Lc 0.0 Not readable

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 950.

  1. Step 50

    50

    #F1F6FA

    oklch(97.1% 0.008 241.7)

  2. Step 100

    100

    #E1ECF3

    oklch(93.7% 0.015 235.4)

  3. Step 200

    200

    #C8DDEB

    oklch(88.6% 0.03 236.9)

  4. Step 300

    300

    #A0C6E0

    oklch(80.8% 0.055 238.3)

  5. Step 400

    400

    #6AA9D0

    oklch(70.7% 0.087 236.9)

  6. Step 500

    500

    #3C92C4

    oklch(63% 0.111 237.8)

  7. Step 600

    600

    #097CB1

    oklch(55.6% 0.121 237.7)

  8. Step 700

    700

    #006896

    oklch(49.1% 0.108 237.6)

  9. Step 800

    800

    #03557B

    oklch(42.6% 0.093 237.5)

  10. Step 900

    900

    #124763

    oklch(37.8% 0.072 236.7)

  11. Step 950

    950 (this color)

    #031F2F

    oklch(22.7% 0.046 237.6)

Export this scale for Tailwind in the Tailwind colors tool

#031F2F with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#171F300.025
Deuteranopia (no green cones)#111B2F0.020
Tritanopia (no blue cones)#0023250.028
Achromatopsia (no color)#1D1D1D0.046

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #031F2F

    #031F2F

    oklch(22.7% 0.046 237.6)

  • #2C1605

    #2C1605

    oklch(22.7% 0.045 56.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #031F2F

    #031F2F

    oklch(22.7% 0.046 237.6)

  • #002126

    #002126

    oklch(22.7% 0.039 209.2)

  • #131B32

    #131B32

    oklch(22.8% 0.046 268.1)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #031F2F

    #031F2F

    oklch(22.7% 0.046 237.6)

  • #2F1310

    #2F1310

    oklch(22.8% 0.047 27.6)

  • #251B00

    #251B00

    oklch(22.8% 0.047 89.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #031F2F

    #031F2F

    oklch(22.7% 0.046 237.6)

  • #2D121C

    #2D121C

    oklch(22.7% 0.046 358)

  • #1B1F04

    #1B1F04

    oklch(22.8% 0.045 117)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #031F2F

    #031F2F

    oklch(22.7% 0.046 237.6)

  • #281427

    #281427

    oklch(22.8% 0.046 328.7)

  • #2C1605

    #2C1605

    oklch(22.7% 0.045 56.7)

  • #0B220F

    #0B220F

    oklch(22.7% 0.047 147.6)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #031F2F, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #031F2F in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.