#212C81#212C81

#212C81 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.142 H 271.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#212C81
RGBrgb(33, 44, 129)
HSLhsl(233, 59%, 32%)
HSVhsv(233, 74%, 51%)
CMYKcmyk(74.4%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.69, 26.52, -49.20)
CIE-LCHlch(22.69, 55.90, 298.32°)
OKLaboklab(34.41% 0.0025 -0.1422)
OKLCHoklch(34.41% 0.142 271)
XYZxyz(5.4890, 3.7091, 21.1913)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C81 #817621
analogous
#215C81 #212C81 #462181
triadic
#212C81 #81212C #2C8121
tetradic
#212C81 #81215C #817621 #218146
square
#212C81 #81215C #817621 #218146
split-complementary
#212C81 #814621 #5C8121
monochromatic
#080B20 #151B50 #212C81 #2D3DB2 #4B5BD1

Accessibility & contrast

On white

12.06
#212C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C81
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C81#FFFFFF#000000##FFFFFF
##212C811.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212c81;
/* rgb */ color: rgb(33, 44, 129);
/* oklch */ color: oklch(34.4% 0.142 271.0);
Tailwind
colors: {
  custom: {
    50: '#6b65a6',
    500: '#212c81',
    950: '#000000',
  },
}
SCSS
$custom: #212c81;
$custom-light: #6b65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#212c81",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 233.125,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34407,
    "c": 0.14218,
    "h": 271
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#212C81
secondary
#B4A74A
accent
#D045E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #212C81

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

Preview Lab → · Contrast checker → · Palette generator →

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