#212C91#212C91

#212C91 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.164 H 270.4°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#212C91
RGBrgb(33, 44, 145)
HSLhsl(234, 63%, 35%)
HSVhsv(234, 77%, 57%)
CMYKcmyk(77.2%, 69.7%, 0%, 43.1%)
CIE-LABlab(24.22, 32.53, -56.67)
CIE-LCHlch(24.22, 65.35, 299.86°)
OKLaboklab(36% 0.0012 -0.164)
OKLCHoklch(36% 0.164 270.4)
XYZxyz(6.6370, 4.1683, 27.2374)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C91 #918621
analogous
#216491 #212C91 #4E2191
triadic
#212C91 #91212C #2C9121
tetradic
#212C91 #912164 #918621 #21914E
square
#212C91 #912164 #918621 #21914E
split-complementary
#212C91 #914E21 #649121
monochromatic
#0A0E2D #161D5F #212C91 #2C3BC3 #5461D8

Accessibility & contrast

On white

11.45
#212C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#212C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C91
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C91#FFFFFF#000000##FFFFFF
##212C911.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212c91;
/* rgb */ color: rgb(33, 44, 145);
/* oklch */ color: oklch(36.0% 0.164 270.4);
Tailwind
colors: {
  custom: {
    50: '#6f65b2',
    500: '#212c91',
    950: '#000000',
  },
}
SCSS
$custom: #212c91;
$custom-light: #6f65b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212c91",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 145
  },
  "hsl": {
    "h": 234.107,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35996,
    "c": 0.16401,
    "h": 270.4
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#212C91
secondary
#BCB152
accent
#D642E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212C91

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

Preview Lab → · Contrast checker → · Palette generator →

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