#212C8B#212C8B

#212C8B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.156 H 270.7°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#212C8B
RGBrgb(33, 44, 139)
HSLhsl(234, 62%, 34%)
HSVhsv(234, 76%, 55%)
CMYKcmyk(76.3%, 68.3%, 0%, 45.5%)
CIE-LABlab(23.63, 30.30, -53.92)
CIE-LCHlch(23.63, 61.85, 299.34°)
OKLaboklab(35.39% 0.0018 -0.1559)
OKLCHoklch(35.39% 0.156 270.7)
XYZxyz(6.1865, 3.9881, 24.8648)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C8B #8B8021
analogous
#21618B #212C8B #4B218B
triadic
#212C8B #8B212C #2C8B21
tetradic
#212C8B #8B2161 #8B8021 #218B4B
square
#212C8B #8B2161 #8B8021 #218B4B
split-complementary
#212C8B #8B4B21 #618B21
monochromatic
#0A0D28 #151C5A #212C8B #2D3CBC #515FD6

Accessibility & contrast

On white

11.68
#212C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#212C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C8B
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C8B#FFFFFF#000000##FFFFFF
##212C8B1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212c8b;
/* rgb */ color: rgb(33, 44, 139);
/* oklch */ color: oklch(35.4% 0.156 270.7);
Tailwind
colors: {
  custom: {
    50: '#6e65ae',
    500: '#212c8b',
    950: '#000000',
  },
}
SCSS
$custom: #212c8b;
$custom-light: #6e65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#212c8b",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 233.774,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3539,
    "c": 0.15596,
    "h": 270.7
  },
  "luminance": 0.03989
}

Semantic roles & 50–950 ramp

primary
#212C8B
secondary
#B9AE4F
accent
#D443E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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