#020F1F

Closest named color: Rich Navy (#001219). oklch(16.5% 0.04 250.9), rgb(2, 15, 31).

Aa

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

About this color

#020F1F is a very dark, muted blue. In OKLCH its lightness is 17%, its chroma 0.040 and its hue 251°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Navy (#001219), ΔE 0.020 away. White text reads best on it, at 19.25:1.

Hue familyBlues
Lightnessvery dark (17%)
Chromamuted (0.040)
Temperaturecool
Nearest nameRich Navy (#001219)
Black text1.09:1
White text19.25:1

Values

HEX#020F1F
RGBrgb(2, 15, 31)
HSLhsl(213, 88%, 6%)
OKLCHoklch(16.5% 0.04 250.9)

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 #020F1F 19.25:1 AAA Lc -107.5 Preferred for body text
Black text on #020F1F 1.09:1 Fails Lc 0.0 Not readable
#020F1F text on white 19.25:1 AAA Lc 105.5 Preferred for body text
#020F1F text on black 1.09: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

    #F2F6FA

    oklch(97.1% 0.007 247.9)

  2. Step 100

    100

    #E3EBF3

    oklch(93.6% 0.014 248)

  3. Step 200

    200

    #CDDBEA

    oklch(88.5% 0.026 250)

  4. Step 300

    300

    #AAC3DF

    oklch(80.8% 0.048 251.4)

  5. Step 400

    400

    #7DA4CF

    oklch(70.6% 0.076 251.4)

  6. Step 500

    500

    #5B8DC2

    oklch(63% 0.097 250.9)

  7. Step 600

    600

    #4077AF

    oklch(55.7% 0.105 250.6)

  8. Step 700

    700

    #326396

    oklch(49% 0.098 251.3)

  9. Step 800

    800

    #2A517A

    oklch(42.6% 0.082 251.3)

  10. Step 900

    900

    #264462

    oklch(37.8% 0.063 249.8)

  11. Step 950

    950 (this color)

    #020F1F

    oklch(16.5% 0.04 250.9)

Export this scale for Tailwind in the Tailwind colors tool

#020F1F 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)#0810200.013
Deuteranopia (no green cones)#040D1F0.008
Tritanopia (no blue cones)#0013150.030
Achromatopsia (no color)#0E0E0E0.040

Harmonies

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

Complementary

The opposite hue (180°).

  • #020F1F

    #020F1F

    oklch(16.5% 0.04 250.9)

  • #180B00

    #180B00

    oklch(16.5% 0.036 69.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #020F1F

    #020F1F

    oklch(16.5% 0.04 250.9)

  • #001118

    #001118

    oklch(16.5% 0.031 223.4)

  • #0C0C1F

    #0C0C1F

    oklch(16.6% 0.039 281.3)

Open the analogous palette in the generator

Split complementary

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

  • #020F1F

    #020F1F

    oklch(16.5% 0.04 250.9)

  • #1C0802

    #1C0802

    oklch(16.6% 0.039 44.1)

  • #120F00

    #120F00

    oklch(16.7% 0.035 101.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #020F1F

    #020F1F

    oklch(16.5% 0.04 250.9)

  • #1C060A

    #1C060A

    oklch(16.4% 0.04 10.1)

  • #081201

    #081201

    oklch(16.6% 0.042 131.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #020F1F

    #020F1F

    oklch(16.5% 0.04 250.9)

  • #1A0714

    #1A0714

    oklch(16.7% 0.041 340.7)

  • #180B00

    #180B00

    oklch(16.5% 0.036 69.6)

  • #001309

    #001309

    oklch(16.5% 0.037 161)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #020F1F 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.