#212D91#212D91

#212D91 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.163 H 270.2°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#212D91
RGBrgb(33, 45, 145)
HSLhsl(234, 63%, 35%)
HSVhsv(234, 77%, 57%)
CMYKcmyk(77.2%, 69%, 0%, 43.1%)
CIE-LABlab(24.46, 31.88, -56.28)
CIE-LCHlch(24.46, 64.68, 299.53°)
OKLaboklab(36.17% 0.0007 -0.1628)
OKLCHoklch(36.17% 0.163 270.2)
XYZxyz(6.6747, 4.2437, 27.2499)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D91 #918521
analogous
#216591 #212D91 #4D2191
triadic
#212D91 #91212D #2D9121
tetradic
#212D91 #912165 #918521 #21914D
square
#212D91 #912165 #918521 #21914D
split-complementary
#212D91 #914D21 #659121
monochromatic
#0A0E2D #161E5F #212D91 #2C3CC3 #5462D8

Accessibility & contrast

On white

11.36
#212D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#212D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D91
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D91#FFFFFF#000000##FFFFFF
##212D911.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#00485B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212d91;
/* rgb */ color: rgb(33, 45, 145);
/* oklch */ color: oklch(36.2% 0.163 270.2);
Tailwind
colors: {
  custom: {
    50: '#6f66b2',
    500: '#212d91',
    950: '#000000',
  },
}
SCSS
$custom: #212d91;
$custom-light: #6f66b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212d91",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 233.571,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36171,
    "c": 0.16285,
    "h": 270.2
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#212D91
secondary
#BCB052
accent
#D442E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212D91

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

Preview Lab → · Contrast checker → · Palette generator →

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