#212D97#212D97

#212D97 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.171 H 270.0°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#212D97
RGBrgb(33, 45, 151)
HSLhsl(234, 64%, 36%)
HSVhsv(234, 78%, 59%)
CMYKcmyk(78.1%, 70.2%, 0%, 40.8%)
CIE-LABlab(25.06, 34.10, -58.99)
CIE-LCHlch(25.06, 68.14, 300.03°)
OKLaboklab(36.78% 0.0001 -0.1708)
OKLCHoklch(36.78% 0.171 270)
XYZxyz(7.1496, 4.4337, 29.7511)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D97 #978B21
analogous
#216897 #212D97 #502197
triadic
#212D97 #97212D #2D9721
tetradic
#212D97 #972168 #978B21 #219750
square
#212D97 #972168 #978B21 #219750
split-complementary
#212D97 #975021 #689721
monochromatic
#0B0F33 #161E65 #212D97 #2C3CC9 #5865DA

Accessibility & contrast

On white

11.13
#212D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#212D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D97
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D97#FFFFFF#000000##FFFFFF
##212D971.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212d97;
/* rgb */ color: rgb(33, 45, 151);
/* oklch */ color: oklch(36.8% 0.171 270.0);
Tailwind
colors: {
  custom: {
    50: '#7166b7',
    500: '#212d97',
    950: '#000000',
  },
}
SCSS
$custom: #212d97;
$custom-light: #7166b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212d97",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 233.898,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36783,
    "c": 0.17078,
    "h": 270
  },
  "luminance": 0.04434
}

Semantic roles & 50–950 ramp

primary
#212D97
secondary
#BEB455
accent
#D641E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212D97

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

Preview Lab → · Contrast checker → · Palette generator →

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