#212E96#212E96

#212E96 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.168 H 269.9°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#212E96
RGBrgb(33, 46, 150)
HSLhsl(233, 64%, 36%)
HSVhsv(233, 78%, 59%)
CMYKcmyk(78%, 69.3%, 0%, 41.2%)
CIE-LABlab(25.19, 33.09, -58.15)
CIE-LCHlch(25.19, 66.91, 299.64°)
OKLaboklab(36.85% -0.0004 -0.1683)
OKLCHoklch(36.85% 0.168 269.9)
XYZxyz(7.1073, 4.4785, 29.3381)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E96 #968921
analogous
#216896 #212E96 #4E2196
triadic
#212E96 #96212E #2E9621
tetradic
#212E96 #962168 #968921 #21964E
square
#212E96 #962168 #968921 #21964E
split-complementary
#212E96 #964E21 #689621
monochromatic
#0B0F32 #161F64 #212E96 #2C3DC8 #5766DA

Accessibility & contrast

On white

11.08
#212E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#212E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E96
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E96#FFFFFF#000000##FFFFFF
##212E961.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212e96;
/* rgb */ color: rgb(33, 46, 150);
/* oklch */ color: oklch(36.9% 0.168 269.9);
Tailwind
colors: {
  custom: {
    50: '#7167b6',
    500: '#212e96',
    950: '#000000',
  },
}
SCSS
$custom: #212e96;
$custom-light: #7167b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212e96",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 233.333,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36853,
    "c": 0.16832,
    "h": 269.9
  },
  "luminance": 0.04479
}

Semantic roles & 50–950 ramp

primary
#212E96
secondary
#BEB255
accent
#D441E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212E96

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

Preview Lab → · Contrast checker → · Palette generator →

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