#212C79#212C79

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

Color values

HEX#212C79
RGBrgb(33, 44, 121)
HSLhsl(233, 57%, 30%)
HSVhsv(233, 73%, 47%)
CMYKcmyk(72.7%, 63.6%, 0%, 52.5%)
CIE-LABlab(21.96, 23.44, -45.32)
CIE-LCHlch(21.96, 51.03, 297.35°)
OKLaboklab(33.65% 0.0028 -0.1308)
OKLCHoklch(33.65% 0.131 271.2)
XYZxyz(4.9779, 3.5047, 18.4996)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C79 #796E21
analogous
#215879 #212C79 #422179
triadic
#212C79 #79212C #2C7921
tetradic
#212C79 #792158 #796E21 #217942
square
#212C79 #792158 #796E21 #217942
split-complementary
#212C79 #794221 #587921
monochromatic
#070919 #141B49 #212C79 #2E3DA9 #4758CD

Accessibility & contrast

On white

12.35
#212C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212C79
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C79#FFFFFF#000000##FFFFFF
##212C791.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212c79;
/* rgb */ color: rgb(33, 44, 121);
/* oklch */ color: oklch(33.6% 0.131 271.2);
Tailwind
colors: {
  custom: {
    50: '#6965a0',
    500: '#212c79',
    950: '#000000',
  },
}
SCSS
$custom: #212c79;
$custom-light: #6965a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212c79",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 121
  },
  "hsl": {
    "h": 232.5,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33649,
    "c": 0.13081,
    "h": 271.2
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#212C79
secondary
#ACA04A
accent
#CD47E0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #212C79

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

Preview Lab → · Contrast checker → · Palette generator →

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