#212C76#212C76

#212C76 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.126 H 271.3°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#212C76
RGBrgb(33, 44, 118)
HSLhsl(232, 56%, 30%)
HSVhsv(232, 72%, 46%)
CMYKcmyk(72%, 62.7%, 0%, 53.7%)
CIE-LABlab(21.70, 22.28, -43.84)
CIE-LCHlch(21.70, 49.18, 296.94°)
OKLaboklab(33.37% 0.0029 -0.1264)
OKLCHoklch(33.37% 0.126 271.3)
XYZxyz(4.7968, 3.4322, 17.5457)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C76 #766B21
analogous
#215776 #212C76 #412176
triadic
#212C76 #76212C #2C7621
tetradic
#212C76 #762157 #766B21 #217641
square
#212C76 #762157 #766B21 #217641
split-complementary
#212C76 #764121 #577621
monochromatic
#070918 #141A46 #212C76 #2E3EA6 #4657CB

Accessibility & contrast

On white

12.45
#212C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C76
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C76#FFFFFF#000000##FFFFFF
##212C761.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212c76;
/* rgb */ color: rgb(33, 44, 118);
/* oklch */ color: oklch(33.4% 0.126 271.3);
Tailwind
colors: {
  custom: {
    50: '#69659e',
    500: '#212c76',
    950: '#000000',
  },
}
SCSS
$custom: #212c76;
$custom-light: #69659e;
$custom-dark: #000000;
JSON
{
  "hex": "#212c76",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 118
  },
  "hsl": {
    "h": 232.235,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33372,
    "c": 0.12645,
    "h": 271.3
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#212C76
secondary
#A99D4A
accent
#CC48E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #212C76

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

Preview Lab → · Contrast checker → · Palette generator →

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