#212B81#212B81

#212B81 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.143 H 271.3°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#212B81
RGBrgb(33, 43, 129)
HSLhsl(234, 59%, 32%)
HSVhsv(234, 74%, 51%)
CMYKcmyk(74.4%, 66.7%, 0%, 49.4%)
CIE-LABlab(22.43, 27.20, -49.63)
CIE-LCHlch(22.43, 56.59, 298.72°)
OKLaboklab(34.22% 0.0032 -0.1434)
OKLCHoklch(34.22% 0.143 271.3)
XYZxyz(5.4522, 3.6355, 21.1790)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B81 #817721
analogous
#215B81 #212B81 #472181
triadic
#212B81 #81212B #2B8121
tetradic
#212B81 #81215B #817721 #218147
square
#212B81 #81215B #817721 #218147
split-complementary
#212B81 #814721 #5B8121
monochromatic
#080B20 #151B50 #212B81 #2D3BB2 #4B59D1

Accessibility & contrast

On white

12.16
#212B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B81
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B81#FFFFFF#000000##FFFFFF
##212B811.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212b81;
/* rgb */ color: rgb(33, 43, 129);
/* oklch */ color: oklch(34.2% 0.143 271.3);
Tailwind
colors: {
  custom: {
    50: '#6b64a6',
    500: '#212b81',
    950: '#000000',
  },
}
SCSS
$custom: #212b81;
$custom-light: #6b64a6;
$custom-dark: #000000;
JSON
{
  "hex": "#212b81",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 233.75,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34218,
    "c": 0.14344,
    "h": 271.3
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

primary
#212B81
secondary
#B4A94A
accent
#D245E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #212B81

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

Preview Lab → · Contrast checker → · Palette generator →

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