#212D78#212D78

#212D78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.128 H 270.9°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#212D78
RGBrgb(33, 45, 120)
HSLhsl(232, 57%, 30%)
HSVhsv(232, 73%, 47%)
CMYKcmyk(72.5%, 62.5%, 0%, 52.9%)
CIE-LABlab(22.14, 22.36, -44.39)
CIE-LCHlch(22.14, 49.70, 296.74°)
OKLaboklab(33.76% 0.002 -0.128)
OKLCHoklch(33.76% 0.128 270.9)
XYZxyz(4.9546, 3.5557, 18.1909)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D78 #786C21
analogous
#215978 #212D78 #402178
triadic
#212D78 #78212D #2D7821
tetradic
#212D78 #782159 #786C21 #217840
square
#212D78 #782159 #786C21 #217840
split-complementary
#212D78 #784021 #597821
monochromatic
#070918 #141B48 #212D78 #2E3FA8 #4759CC

Accessibility & contrast

On white

12.27
#212D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D78
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D78#FFFFFF#000000##FFFFFF
##212D781.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212d78;
/* rgb */ color: rgb(33, 45, 120);
/* oklch */ color: oklch(33.8% 0.128 270.9);
Tailwind
colors: {
  custom: {
    50: '#6965a0',
    500: '#212d78',
    950: '#000000',
  },
}
SCSS
$custom: #212d78;
$custom-light: #6965a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212d78",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 231.724,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.33758,
    "c": 0.12804,
    "h": 270.9
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#212D78
secondary
#AB9E4A
accent
#CB48E0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #212D78

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

Preview Lab → · Contrast checker → · Palette generator →

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