#020418

Closest named color: Midnight (#03012D). oklch(12.2% 0.048 269.5), rgb(2, 4, 24).

Aa

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

About this color

#020418 is a very dark, muted blue. In OKLCH its lightness is 12%, its chroma 0.048 and its hue 270°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.045 away. White text reads best on it, at 20.32:1.

Hue familyBlues
Lightnessvery dark (12%)
Chromamuted (0.048)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.03:1
White text20.32:1

Values

HEX#020418
RGBrgb(2, 4, 24)
HSLhsl(235, 85%, 5%)
OKLCHoklch(12.2% 0.048 269.5)

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 #020418 20.32:1 AAA Lc -107.8 Preferred for body text
Black text on #020418 1.03:1 Fails Lc 0.0 Not readable
#020418 text on white 20.32:1 AAA Lc 105.9 Preferred for body text
#020418 text on black 1.03: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

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E5EAF5

    oklch(93.6% 0.016 266.3)

  3. Step 200

    200

    #D1D9EF

    oklch(88.6% 0.031 269.8)

  4. Step 300

    300

    #B2C0E6

    oklch(81% 0.056 269.2)

  5. Step 400

    400

    #8A9EDA

    oklch(70.7% 0.091 269.8)

  6. Step 500

    500

    #6E85CF

    oklch(63.1% 0.115 269.8)

  7. Step 600

    600

    #566EBD

    oklch(55.7% 0.126 269.3)

  8. Step 700

    700

    #475BA3

    oklch(49.1% 0.118 270)

  9. Step 800

    800

    #3A4B84

    oklch(42.8% 0.097 269.5)

  10. Step 900

    900

    #323F6A

    oklch(37.8% 0.076 269.8)

  11. Step 950

    950 (this color)

    #020418

    oklch(12.2% 0.048 269.5)

Export this scale for Tailwind in the Tailwind colors tool

#020418 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)#0006190.011
Deuteranopia (no green cones)#0005180.009
Tritanopia (no blue cones)#00080C0.038
Achromatopsia (no color)#0505050.048

Harmonies

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

Complementary

The opposite hue (180°).

  • #020418

    #020418

    oklch(12.2% 0.048 269.5)

  • #090500

    #090500

    oklch(11.9% 0.024 86.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #020418

    #020418

    oklch(12.2% 0.048 269.5)

  • #00070F

    #00070F

    oklch(12.2% 0.027 238.4)

  • #090215

    #090215

    oklch(12.2% 0.048 301)

Open the analogous palette in the generator

Split complementary

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

  • #020418

    #020418

    oklch(12.2% 0.048 269.5)

  • #0D0400

    #0D0400

    oklch(12.2% 0.028 62.7)

  • #050700

    #050700

    oklch(12.1% 0.029 119.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #020418

    #020418

    oklch(12.2% 0.048 269.5)

  • #140000

    #140000

    oklch(12% 0.049 29.2)

  • #000902

    #000902

    oklch(12.2% 0.033 151.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #020418

    #020418

    oklch(12.2% 0.048 269.5)

  • #130005

    #130005

    oklch(12.1% 0.049 1)

  • #090500

    #090500

    oklch(11.9% 0.024 86.8)

  • #000806

    #000806

    oklch(12% 0.022 179.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #020418 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.