#212C7E#212C7E

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

Color values

HEX#212C7E
RGBrgb(33, 44, 126)
HSLhsl(233, 58%, 31%)
HSVhsv(233, 74%, 49%)
CMYKcmyk(73.8%, 65.1%, 0%, 50.6%)
CIE-LABlab(22.41, 25.37, -47.76)
CIE-LCHlch(22.41, 54.08, 297.98°)
OKLaboklab(34.12% 0.0026 -0.1379)
OKLCHoklch(34.12% 0.138 271.1)
XYZxyz(5.2925, 3.6305, 20.1565)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C7E #7E7321
analogous
#215A7E #212C7E #44217E
triadic
#212C7E #7E212C #2C7E21
tetradic
#212C7E #7E215A #7E7321 #217E44
square
#212C7E #7E215A #7E7321 #217E44
split-complementary
#212C7E #7E4421 #5A7E21
monochromatic
#080A1D #141B4E #212C7E #2E3DAE #4A5AD0

Accessibility & contrast

On white

12.17
#212C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C7E
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C7E#FFFFFF#000000##FFFFFF
##212C7E1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212c7e;
/* rgb */ color: rgb(33, 44, 126);
/* oklch */ color: oklch(34.1% 0.138 271.1);
Tailwind
colors: {
  custom: {
    50: '#6b65a4',
    500: '#212c7e',
    950: '#000000',
  },
}
SCSS
$custom: #212c7e;
$custom-light: #6b65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#212c7e",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 232.903,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3412,
    "c": 0.13796,
    "h": 271.1
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#212C7E
secondary
#B1A54A
accent
#CF46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #212C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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