#212F96#212F96

#212F96 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.167 H 269.7°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#212F96
RGBrgb(33, 47, 150)
HSLhsl(233, 64%, 36%)
HSVhsv(233, 78%, 59%)
CMYKcmyk(78%, 68.7%, 0%, 41.2%)
CIE-LABlab(25.44, 32.44, -57.76)
CIE-LCHlch(25.44, 66.24, 299.32°)
OKLaboklab(37.03% -0.0009 -0.1672)
OKLCHoklch(37.03% 0.167 269.7)
XYZxyz(7.1468, 4.5576, 29.3513)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F96 #968821
analogous
#216996 #212F96 #4E2196
triadic
#212F96 #96212F #2F9621
tetradic
#212F96 #962169 #968821 #21964E
square
#212F96 #962169 #968821 #21964E
split-complementary
#212F96 #964E21 #699621
monochromatic
#0B1032 #161F64 #212F96 #2C3FC8 #5767DA

Accessibility & contrast

On white

10.99
#212F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#212F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F96
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F96#FFFFFF#000000##FFFFFF
##212F961.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212f96;
/* rgb */ color: rgb(33, 47, 150);
/* oklch */ color: oklch(37.0% 0.167 269.7);
Tailwind
colors: {
  custom: {
    50: '#7067b6',
    500: '#212f96',
    950: '#000000',
  },
}
SCSS
$custom: #212f96;
$custom-light: #7067b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212f96",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 232.821,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37028,
    "c": 0.16716,
    "h": 269.7
  },
  "luminance": 0.04558
}

Semantic roles & 50–950 ramp

primary
#212F96
secondary
#BEB155
accent
#D341E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212F96

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

Preview Lab → · Contrast checker → · Palette generator →

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