#020C27

Closest named color: Dark Navy (#000435). oklch(16.4% 0.059 262), rgb(2, 12, 39).

Aa

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

About this color

#020C27 is a very dark, muted blue. In OKLCH its lightness is 16%, its chroma 0.059 and its hue 262°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Navy (#000435), ΔE 0.037 away. White text reads best on it, at 19.36:1.

Hue familyBlues
Lightnessvery dark (16%)
Chromamuted (0.059)
Temperaturecool
Nearest nameDark Navy (#000435)
Black text1.08:1
White text19.36:1

Values

HEX#020C27
RGBrgb(2, 12, 39)
HSLhsl(224, 90%, 8%)
OKLCHoklch(16.4% 0.059 262)

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

    #F2F6FC

    oklch(97.2% 0.009 258.3)

  2. Step 100

    100

    #E3EAF8

    oklch(93.6% 0.02 264.5)

  3. Step 200

    200

    #CBDAF4

    oklch(88.5% 0.039 261.5)

  4. Step 300

    300

    #A8C1EE

    oklch(80.8% 0.07 262.1)

  5. Step 400

    400

    #7AA0E6

    oklch(70.6% 0.111 262.1)

  6. Step 500

    500

    #5887DF

    oklch(63.1% 0.143 261.9)

  7. Step 600

    600

    #3E6FCD

    oklch(55.7% 0.155 262)

  8. Step 700

    700

    #305CB1

    oklch(49.1% 0.144 262)

  9. Step 800

    800

    #284C8F

    oklch(42.7% 0.119 261.5)

  10. Step 900

    900

    #254072

    oklch(37.7% 0.092 261.6)

  11. Step 950

    950 (this color)

    #020C27

    oklch(16.4% 0.059 262)

Export this scale for Tailwind in the Tailwind colors tool

#020C27 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)#000F280.010
Deuteranopia (no green cones)#000C260.005
Tritanopia (no blue cones)#0013170.047
Achromatopsia (no color)#0E0E0E0.059

Harmonies

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

Complementary

The opposite hue (180°).

  • #020C27

    #020C27

    oklch(16.4% 0.059 262)

  • #150C00

    #150C00

    oklch(16.3% 0.034 81.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #020C27

    #020C27

    oklch(16.4% 0.059 262)

  • #00101A

    #00101A

    oklch(16.3% 0.034 233.4)

  • #100725

    #100725

    oklch(16.4% 0.06 292.8)

Open the analogous palette in the generator

Split complementary

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

  • #020C27

    #020C27

    oklch(16.4% 0.059 262)

  • #1C0800

    #1C0800

    oklch(16.5% 0.042 52.2)

  • #0F0F00

    #0F0F00

    oklch(16.3% 0.036 109.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #020C27

    #020C27

    oklch(16.4% 0.059 262)

  • #220204

    #220204

    oklch(16.5% 0.058 21.1)

  • #001400

    #001400

    oklch(16.6% 0.056 142.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #020C27

    #020C27

    oklch(16.4% 0.059 262)

  • #1F0211

    #1F0211

    oklch(16.3% 0.059 351)

  • #150C00

    #150C00

    oklch(16.3% 0.034 81.5)

  • #00120D

    #00120D

    oklch(16.3% 0.031 174.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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