#28317B

Closest named color: Marine Blue (#01386A). oklch(35.3% 0.125 273), rgb(40, 49, 123).

Aa

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

About this color

#28317B is a dark, moderately saturated blue. In OKLCH its lightness is 35%, its chroma 0.125 and its hue 273°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.048 away. White text reads best on it, at 11.56:1.

Hue familyBlues
Lightnessdark (35%)
Chromamoderately saturated (0.125)
Temperaturecool
Nearest nameMarine Blue (#01386A)
Black text1.81:1
White text11.56:1

Values

HEX#28317B
RGBrgb(40, 49, 123)
HSLhsl(233, 51%, 32%)
OKLCHoklch(35.3% 0.125 273)

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 #28317B 11.56:1 AAA Lc -100.0 Preferred for body text
Black text on #28317B 1.81:1 Fails Lc 7.6 Not readable
#28317B text on white 11.56:1 AAA Lc 96.2 Preferred for body text
#28317B text on black 1.81: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

    #F2F5FE

    oklch(97% 0.012 271.3)

  2. Step 100

    100

    #E3E9FD

    oklch(93.5% 0.028 272.5)

  3. Step 200

    200

    #CDD8FC

    oklch(88.5% 0.051 271.9)

  4. Step 300

    300

    #ACBDFE

    oklch(80.9% 0.094 272.8)

  5. Step 400

    400

    #8298FD

    oklch(70.7% 0.15 272.8)

  6. Step 500

    500

    #667AFB

    oklch(63.1% 0.192 273)

  7. Step 600

    600

    #505FEA

    oklch(55.6% 0.208 272.9)

  8. Step 700

    700

    #424DCC

    oklch(49.1% 0.194 273.1)

  9. Step 800

    800

    #3640A5

    oklch(42.7% 0.161 273.2)

  10. Step 900

    900 (this color)

    #28317B

    oklch(35.3% 0.125 273)

  11. Step 950

    950

    #1A214C

    oklch(26.8% 0.079 272.9)

Export this scale for Tailwind in the Tailwind colors tool

#28317B 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)#003D7D0.040
Deuteranopia (no green cones)#00357A0.034
Tritanopia (no blue cones)#0043510.103
Achromatopsia (no color)#3939390.125

Harmonies

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

Complementary

The opposite hue (180°).

  • #28317B

    #28317B

    oklch(35.3% 0.125 273)

  • #483A00

    #483A00

    oklch(35.3% 0.072 93.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #28317B

    #28317B

    oklch(35.3% 0.125 273)

  • #003F64

    #003F64

    oklch(35.3% 0.085 243)

  • #49256F

    #49256F

    oklch(35.3% 0.124 302.9)

Open the analogous palette in the generator

Split complementary

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

  • #28317B

    #28317B

    oklch(35.3% 0.125 273)

  • #583000

    #583000

    oklch(35.3% 0.081 62.8)

  • #334200

    #334200

    oklch(35.3% 0.087 123)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #28317B

    #28317B

    oklch(35.3% 0.125 273)

  • #6E1504

    #6E1504

    oklch(35.2% 0.125 32.8)

  • #004823

    #004823

    oklch(35.2% 0.09 153.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #28317B

    #28317B

    oklch(35.3% 0.125 273)

  • #6B1135

    #6B1135

    oklch(35.2% 0.125 2.7)

  • #483A00

    #483A00

    oklch(35.3% 0.072 93.7)

  • #00463E

    #00463E

    oklch(35.4% 0.063 182.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #28317B 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.