#283040

Closest named color: Gunmetal (#293241). oklch(30.9% 0.031 264), rgb(40, 48, 64).

Aa

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

About this color

#283040 is a dark, muted blue. In OKLCH its lightness is 31%, its chroma 0.031 and its hue 264°. Its hue sits on the cool side of the wheel. The nearest named color is Gunmetal (#293241), ΔE 0.007 away. White text reads best on it, at 13.23:1.

Hue familyBlues
Lightnessdark (31%)
Chromamuted (0.031)
Temperaturecool
Nearest nameGunmetal (#293241)
Black text1.58:1
White text13.23:1

Values

HEX#283040
RGBrgb(40, 48, 64)
HSLhsl(220, 23%, 20%)
OKLCHoklch(30.9% 0.031 264)

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 #283040 13.23:1 AAA Lc -102.8 Preferred for body text
Black text on #283040 1.58:1 Fails Lc 0.0 Not readable
#283040 text on white 13.23:1 AAA Lc 99.6 Preferred for body text
#283040 text on black 1.58: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

    #F4F5F9

    oklch(97.1% 0.005 275)

  2. Step 100

    100

    #E6EAF1

    oklch(93.6% 0.01 261.8)

  3. Step 200

    200

    #D2D9E7

    oklch(88.4% 0.021 264.5)

  4. Step 300

    300

    #B5C1D9

    oklch(80.9% 0.036 264.3)

  5. Step 400

    400

    #8EA1C6

    oklch(70.7% 0.058 263.6)

  6. Step 500

    500

    #7289B8

    oklch(63% 0.076 264.2)

  7. Step 600

    600

    #5B73A4

    oklch(55.7% 0.082 263.9)

  8. Step 700

    700

    #4B608C

    oklch(49.1% 0.076 264.3)

  9. Step 800

    800

    #3D4E72

    oklch(42.6% 0.064 264.5)

  10. Step 900

    900

    #34415C

    oklch(37.6% 0.05 264.3)

  11. Step 950

    950 (this color)

    #283040

    oklch(30.9% 0.031 264)

Export this scale for Tailwind in the Tailwind colors tool

#283040 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)#2B31410.006
Deuteranopia (no green cones)#282F400.003
Tritanopia (no blue cones)#2133350.028
Achromatopsia (no color)#3030300.031

Harmonies

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

Complementary

The opposite hue (180°).

  • #283040

    #283040

    oklch(30.9% 0.031 264)

  • #372F1E

    #372F1E

    oklch(30.9% 0.03 85.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #283040

    #283040

    oklch(30.9% 0.031 264)

  • #20333D

    #20333D

    oklch(30.9% 0.03 232)

  • #312D3E

    #312D3E

    oklch(30.9% 0.031 295.3)

Open the analogous palette in the generator

Split complementary

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

  • #283040

    #283040

    oklch(30.9% 0.031 264)

  • #3D2C21

    #3D2C21

    oklch(31% 0.032 54.1)

  • #303220

    #303220

    oklch(31% 0.03 113.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #283040

    #283040

    oklch(30.9% 0.031 264)

  • #3E2A28

    #3E2A28

    oklch(30.8% 0.03 25.4)

  • #273426

    #273426

    oklch(30.8% 0.03 143)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #283040

    #283040

    oklch(30.9% 0.031 264)

  • #3D2A31

    #3D2A31

    oklch(31% 0.03 355.1)

  • #372F1E

    #372F1E

    oklch(30.9% 0.03 85.5)

  • #1F352F

    #1F352F

    oklch(30.8% 0.03 175.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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