#28335C

Closest named color: Prussian Blue (#1D3557). oklch(33.3% 0.074 270.6), rgb(40, 51, 92).

Aa

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

About this color

#28335C is a dark, moderately saturated blue. In OKLCH its lightness is 33%, its chroma 0.074 and its hue 271°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.018 away. White text reads best on it, at 12.22:1.

Hue familyBlues
Lightnessdark (33%)
Chromamoderately saturated (0.074)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.71:1
White text12.22:1

Values

HEX#28335C
RGBrgb(40, 51, 92)
HSLhsl(227, 39%, 26%)
OKLCHoklch(33.3% 0.074 270.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 #28335C 12.22:1 AAA Lc -101.3 Preferred for body text
Black text on #28335C 1.71:1 Fails Lc 0.0 Not readable
#28335C text on white 12.22:1 AAA Lc 97.8 Preferred for body text
#28335C text on black 1.71: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 900.

  1. Step 50

    50

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E6EAF5

    oklch(93.7% 0.015 270)

  3. Step 200

    200

    #D1D9EE

    oklch(88.6% 0.03 269.1)

  4. Step 300

    300

    #B3BFE5

    oklch(80.8% 0.055 271.4)

  5. Step 400

    400

    #8C9ED9

    oklch(70.8% 0.089 270.9)

  6. Step 500

    500

    #7085CE

    oklch(63.1% 0.113 270.7)

  7. Step 600

    600

    #596DBB

    oklch(55.6% 0.123 271.1)

  8. Step 700

    700

    #495BA1

    oklch(49.1% 0.114 270.8)

  9. Step 800

    800

    #3C4B83

    oklch(42.8% 0.095 270.7)

  10. Step 900

    900 (this color)

    #28335C

    oklch(33.3% 0.074 270.6)

  11. Step 950

    950

    #1E253D

    oklch(27% 0.046 270.7)

Export this scale for Tailwind in the Tailwind colors tool

#28335C 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)#22385E0.016
Deuteranopia (no green cones)#1C335B0.016
Tritanopia (no blue cones)#0F3C430.066
Achromatopsia (no color)#3535350.074

Harmonies

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

Complementary

The opposite hue (180°).

  • #28335C

    #28335C

    oklch(33.3% 0.074 270.6)

  • #433400

    #433400

    oklch(33.2% 0.068 90.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #28335C

    #28335C

    oklch(33.3% 0.074 270.6)

  • #053A58

    #053A58

    oklch(33.3% 0.073 240.7)

  • #3D2C56

    #3D2C56

    oklch(33.3% 0.074 301.2)

Open the analogous palette in the generator

Split complementary

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

  • #28335C

    #28335C

    oklch(33.3% 0.074 270.6)

  • #512C04

    #512C04

    oklch(33.4% 0.074 61.2)

  • #313B07

    #313B07

    oklch(33.2% 0.073 120.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #28335C

    #28335C

    oklch(33.3% 0.074 270.6)

  • #56261E

    #56261E

    oklch(33.4% 0.073 31)

  • #134121

    #134121

    oklch(33.5% 0.075 150.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #28335C

    #28335C

    oklch(33.3% 0.074 270.6)

  • #542434

    #542434

    oklch(33.3% 0.074 0.9)

  • #433400

    #433400

    oklch(33.2% 0.068 90.9)

  • #004038

    #004038

    oklch(33.3% 0.06 181.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #28335C 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.