#212D7E#212D7E

#212D7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.137 H 270.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#212D7E
RGBrgb(33, 45, 126)
HSLhsl(232, 58%, 31%)
HSVhsv(232, 74%, 49%)
CMYKcmyk(73.8%, 64.3%, 0%, 50.6%)
CIE-LABlab(22.67, 24.68, -47.33)
CIE-LCHlch(22.67, 53.38, 297.54°)
OKLaboklab(34.31% 0.0019 -0.1366)
OKLCHoklch(34.31% 0.137 270.8)
XYZxyz(5.3302, 3.7059, 20.1690)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D7E #7E7221
analogous
#215B7E #212D7E #43217E
triadic
#212D7E #7E212D #2D7E21
tetradic
#212D7E #7E215B #7E7221 #217E43
square
#212D7E #7E215B #7E7221 #217E43
split-complementary
#212D7E #7E4321 #5B7E21
monochromatic
#080A1D #141C4E #212D7E #2E3EAE #4A5BD0

Accessibility & contrast

On white

12.06
#212D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D7E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D7E#FFFFFF#000000##FFFFFF
##212D7E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212d7e;
/* rgb */ color: rgb(33, 45, 126);
/* oklch */ color: oklch(34.3% 0.137 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a65a4',
    500: '#212d7e',
    950: '#000000',
  },
}
SCSS
$custom: #212d7e;
$custom-light: #6a65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#212d7e",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 232.258,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34314,
    "c": 0.13666,
    "h": 270.8
  },
  "luminance": 0.03706
}

Semantic roles & 50–950 ramp

primary
#212D7E
secondary
#B1A34A
accent
#CE46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #212D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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