#2D2875

Closest named color: Midnight Blue (#191970). oklch(33.4% 0.127 279.9), rgb(45, 40, 117).

Aa

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

About this color

#2D2875 is a dark, moderately saturated blue. In OKLCH its lightness is 33%, its chroma 0.127 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.051 away. White text reads best on it, at 12.56:1.

Hue familyBlues
Lightnessdark (33%)
Chromamoderately saturated (0.127)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.67:1
White text12.56:1

Values

HEX#2D2875
RGBrgb(45, 40, 117)
HSLhsl(244, 49%, 31%)
OKLCHoklch(33.4% 0.127 279.9)

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 #2D2875 12.56:1 AAA Lc -101.5 Preferred for body text
Black text on #2D2875 1.67:1 Fails Lc 0.0 Not readable
#2D2875 text on white 12.56:1 AAA Lc 98.1 Preferred for body text
#2D2875 text on black 1.67: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

    #F3F5FE

    oklch(97.1% 0.012 276.1)

  2. Step 100

    100

    #E6E8FD

    oklch(93.6% 0.028 281.5)

  3. Step 200

    200

    #D1D6FC

    oklch(88.4% 0.053 279.4)

  4. Step 300

    300

    #B4BAFE

    oklch(80.9% 0.096 280.1)

  5. Step 400

    400

    #8F93FD

    oklch(70.6% 0.153 280.1)

  6. Step 500

    500

    #7674FB

    oklch(63% 0.196 279.8)

  7. Step 600

    600

    #6258EA

    oklch(55.6% 0.212 280)

  8. Step 700

    700

    #5247CC

    oklch(49.2% 0.198 280)

  9. Step 800

    800

    #423BA5

    oklch(42.7% 0.165 279.8)

  10. Step 900

    900 (this color)

    #2D2875

    oklch(33.4% 0.127 279.9)

  11. Step 950

    950

    #20204C

    oklch(27.1% 0.079 279.7)

Export this scale for Tailwind in the Tailwind colors tool

#2D2875 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)#0036770.051
Deuteranopia (no green cones)#0030730.047
Tritanopia (no blue cones)#003B4A0.109
Achromatopsia (no color)#3333330.128

Harmonies

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

Complementary

The opposite hue (180°).

  • #2D2875

    #2D2875

    oklch(33.4% 0.127 279.9)

  • #3F3700

    #3F3700

    oklch(33.5% 0.07 100.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2D2875

    #2D2875

    oklch(33.4% 0.127 279.9)

  • #003864

    #003864

    oklch(33.5% 0.093 249.4)

  • #4A1B66

    #4A1B66

    oklch(33.3% 0.128 309.9)

Open the analogous palette in the generator

Split complementary

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

  • #2D2875

    #2D2875

    oklch(33.4% 0.127 279.9)

  • #4E2E00

    #4E2E00

    oklch(33.3% 0.073 68.8)

  • #263F00

    #263F00

    oklch(33.4% 0.09 130.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2D2875

    #2D2875

    oklch(33.4% 0.127 279.9)

  • #601C00

    #601C00

    oklch(33.3% 0.105 39.7)

  • #004228

    #004228

    oklch(33.4% 0.076 159.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2D2875

    #2D2875

    oklch(33.4% 0.127 279.9)

  • #670627

    #670627

    oklch(33.3% 0.127 9.8)

  • #3F3700

    #3F3700

    oklch(33.5% 0.07 100.3)

  • #00403D

    #00403D

    oklch(33.5% 0.058 189.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #2D2875 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.