#212C78#212C78

#212C78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.129 H 271.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#212C78
RGBrgb(33, 44, 120)
HSLhsl(232, 57%, 30%)
HSVhsv(232, 73%, 47%)
CMYKcmyk(72.5%, 63.3%, 0%, 52.9%)
CIE-LABlab(21.87, 23.06, -44.83)
CIE-LCHlch(21.87, 50.41, 297.22°)
OKLaboklab(33.56% 0.0028 -0.1293)
OKLCHoklch(33.56% 0.129 271.3)
XYZxyz(4.9169, 3.4803, 18.1783)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C78 #786D21
analogous
#215778 #212C78 #422178
triadic
#212C78 #78212C #2C7821
tetradic
#212C78 #782157 #786D21 #217842
square
#212C78 #782157 #786D21 #217842
split-complementary
#212C78 #784221 #577821
monochromatic
#070918 #141A48 #212C78 #2E3EA8 #4758CC

Accessibility & contrast

On white

12.38
#212C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#212C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C78
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C78#FFFFFF#000000##FFFFFF
##212C781.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387A
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212c78;
/* rgb */ color: rgb(33, 44, 120);
/* oklch */ color: oklch(33.6% 0.129 271.3);
Tailwind
colors: {
  custom: {
    50: '#6965a0',
    500: '#212c78',
    950: '#000000',
  },
}
SCSS
$custom: #212c78;
$custom-light: #6965a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212c78",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 232.414,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.33557,
    "c": 0.12936,
    "h": 271.3
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#212C78
secondary
#AB9F4A
accent
#CD48E0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #212C78

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

Preview Lab → · Contrast checker → · Palette generator →

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