#212E8B#212E8B

#212E8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.154 H 270.2°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#212E8B
RGBrgb(33, 46, 139)
HSLhsl(233, 62%, 34%)
HSVhsv(233, 76%, 55%)
CMYKcmyk(76.3%, 66.9%, 0%, 45.5%)
CIE-LABlab(24.13, 28.97, -53.10)
CIE-LCHlch(24.13, 60.49, 298.62°)
OKLaboklab(35.75% 0.0005 -0.1535)
OKLCHoklch(35.75% 0.154 270.2)
XYZxyz(6.2628, 4.1407, 24.8903)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E8B #8B7E21
analogous
#21638B #212E8B #49218B
triadic
#212E8B #8B212E #2E8B21
tetradic
#212E8B #8B2163 #8B7E21 #218B49
square
#212E8B #8B2163 #8B7E21 #218B49
split-complementary
#212E8B #8B4921 #638B21
monochromatic
#0A0D28 #151E5A #212E8B #2D3EBC #5161D6

Accessibility & contrast

On white

11.49
#212E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#212E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E8B
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E8B#FFFFFF#000000##FFFFFF
##212E8B1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212e8b;
/* rgb */ color: rgb(33, 46, 139);
/* oklch */ color: oklch(35.8% 0.154 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e66ae',
    500: '#212e8b',
    950: '#000000',
  },
}
SCSS
$custom: #212e8b;
$custom-light: #6e66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#212e8b",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 232.642,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35754,
    "c": 0.15354,
    "h": 270.2
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#212E8B
secondary
#B9AC4F
accent
#D143E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212E8B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#212E8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva