#212E97#212E97

#212E97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.170 H 269.8°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#212E97
RGBrgb(33, 46, 151)
HSLhsl(233, 64%, 36%)
HSVhsv(233, 78%, 59%)
CMYKcmyk(78.1%, 69.5%, 0%, 40.8%)
CIE-LABlab(25.29, 33.46, -58.60)
CIE-LCHlch(25.29, 67.48, 299.72°)
OKLaboklab(36.95% -0.0005 -0.1696)
OKLCHoklch(36.95% 0.17 269.8)
XYZxyz(7.1882, 4.5109, 29.7640)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E97 #978A21
analogous
#216997 #212E97 #4F2197
triadic
#212E97 #97212E #2E9721
tetradic
#212E97 #972169 #978A21 #21974F
square
#212E97 #972169 #978A21 #21974F
split-complementary
#212E97 #974F21 #699721
monochromatic
#0B0F33 #161F65 #212E97 #2C3DC9 #5866DA

Accessibility & contrast

On white

11.04
#212E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212E97
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E97#FFFFFF#000000##FFFFFF
##212E971.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212e97;
/* rgb */ color: rgb(33, 46, 151);
/* oklch */ color: oklch(37.0% 0.170 269.8);
Tailwind
colors: {
  custom: {
    50: '#7167b7',
    500: '#212e97',
    950: '#000000',
  },
}
SCSS
$custom: #212e97;
$custom-light: #7167b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212e97",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 233.39,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36954,
    "c": 0.16964,
    "h": 269.8
  },
  "luminance": 0.04512
}

Semantic roles & 50–950 ramp

primary
#212E97
secondary
#BEB355
accent
#D541E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212E97

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

Preview Lab → · Contrast checker → · Palette generator →

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