#212C7D#212C7D

#212C7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.137 H 271.1°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#212C7D
RGBrgb(33, 44, 125)
HSLhsl(233, 58%, 31%)
HSVhsv(233, 74%, 49%)
CMYKcmyk(73.6%, 64.8%, 0%, 51%)
CIE-LABlab(22.32, 24.99, -47.28)
CIE-LCHlch(22.32, 53.47, 297.86°)
OKLaboklab(34.03% 0.0027 -0.1365)
OKLCHoklch(34.03% 0.137 271.1)
XYZxyz(5.2283, 3.6048, 19.8183)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C7D #7D7221
analogous
#215A7D #212C7D #44217D
triadic
#212C7D #7D212C #2C7D21
tetradic
#212C7D #7D215A #7D7221 #217D44
square
#212C7D #7D215A #7D7221 #217D44
split-complementary
#212C7D #7D4421 #5A7D21
monochromatic
#070A1C #141B4D #212C7D #2E3DAD #4959CF

Accessibility & contrast

On white

12.20
#212C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C7D
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C7D#FFFFFF#000000##FFFFFF
##212C7D1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212c7d;
/* rgb */ color: rgb(33, 44, 125);
/* oklch */ color: oklch(34.0% 0.137 271.1);
Tailwind
colors: {
  custom: {
    50: '#6a65a3',
    500: '#212c7d',
    950: '#000000',
  },
}
SCSS
$custom: #212c7d;
$custom-light: #6a65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#212c7d",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 232.826,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34025,
    "c": 0.13654,
    "h": 271.1
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#212C7D
secondary
#B0A44A
accent
#CF46E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #212C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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