#2B2B7C

Closest named color: Midnight Blue (#191970). oklch(34.4% 0.134 276.8), rgb(43, 43, 124).

Aa

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

About this color

#2B2B7C is a dark, moderately saturated blue. In OKLCH its lightness is 34%, its chroma 0.134 and its hue 277°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.058 away. White text reads best on it, at 12.07:1.

Hue familyBlues
Lightnessdark (34%)
Chromamoderately saturated (0.134)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.73:1
White text12.07:1

Values

HEX#2B2B7C
RGBrgb(43, 43, 124)
HSLhsl(240, 49%, 33%)
OKLCHoklch(34.4% 0.134 276.8)

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 #2B2B7C 12.07:1 AAA Lc -100.7 Preferred for body text
Black text on #2B2B7C 1.73:1 Fails Lc 0.0 Not readable
#2B2B7C text on white 12.07:1 AAA Lc 97.1 Preferred for body text
#2B2B7C text on black 1.73: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

    #F3F5FF

    oklch(97.2% 0.013 277.1)

  2. Step 100

    100

    #E4E9FE

    oklch(93.7% 0.029 275.2)

  3. Step 200

    200

    #CFD7FF

    oklch(88.6% 0.056 276.3)

  4. Step 300

    300

    #B0BBFF

    oklch(80.8% 0.097 276.9)

  5. Step 400

    400

    #8995FF

    oklch(70.7% 0.154 276.8)

  6. Step 500

    500

    #6F76FF

    oklch(63.2% 0.2 276.8)

  7. Step 600

    600

    #5A58F1

    oklch(55.6% 0.223 276.9)

  8. Step 700

    700

    #4A47D2

    oklch(49.2% 0.207 276.6)

  9. Step 800

    800

    #3C3BAA

    oklch(42.7% 0.172 276.6)

  10. Step 900

    900 (this color)

    #2B2B7C

    oklch(34.4% 0.134 276.8)

  11. Step 950

    950

    #1D204F

    oklch(27.1% 0.085 276.4)

Export this scale for Tailwind in the Tailwind colors tool

#2B2B7C 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)#003A7F0.048
Deuteranopia (no green cones)#00337A0.041
Tritanopia (no blue cones)#003F4F0.111
Achromatopsia (no color)#3636360.134

Harmonies

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

Complementary

The opposite hue (180°).

  • #2B2B7C

    #2B2B7C

    oklch(34.4% 0.134 276.8)

  • #443800

    #443800

    oklch(34.3% 0.071 95.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2B2B7C

    #2B2B7C

    oklch(34.4% 0.134 276.8)

  • #003B64

    #003B64

    oklch(34.3% 0.09 246.9)

  • #4B1D6E

    #4B1D6E

    oklch(34.4% 0.135 306.5)

Open the analogous palette in the generator

Split complementary

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

  • #2B2B7C

    #2B2B7C

    oklch(34.4% 0.134 276.8)

  • #533000

    #533000

    oklch(34.5% 0.076 67)

  • #2D4100

    #2D4100

    oklch(34.5% 0.089 126.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2B2B7C

    #2B2B7C

    oklch(34.4% 0.134 276.8)

  • #681900

    #681900

    oklch(34.4% 0.116 36.6)

  • #004527

    #004527

    oklch(34.4% 0.082 157)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2B2B7C

    #2B2B7C

    oklch(34.4% 0.134 276.8)

  • #6C052D

    #6C052D

    oklch(34.4% 0.133 6.9)

  • #443800

    #443800

    oklch(34.3% 0.071 95.6)

  • #00433E

    #00433E

    oklch(34.5% 0.06 186.4)

Open the square palette in the generator

Palettes and gradients that use #2B2B7C

These curated palettes and gradients contain exactly #2B2B7C. Open one to see the full color scheme around it.

Gradients

Similar named colors

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

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