#212D7B#212D7B

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

Color values

HEX#212D7B
RGBrgb(33, 45, 123)
HSLhsl(232, 58%, 31%)
HSVhsv(232, 73%, 48%)
CMYKcmyk(73.2%, 63.4%, 0%, 51.8%)
CIE-LABlab(22.41, 23.52, -45.86)
CIE-LCHlch(22.41, 51.55, 297.15°)
OKLaboklab(34.03% 0.002 -0.1324)
OKLCHoklch(34.03% 0.132 270.8)
XYZxyz(5.1395, 3.6297, 19.1648)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D7B #7B6F21
analogous
#215A7B #212D7B #42217B
triadic
#212D7B #7B212D #2D7B21
tetradic
#212D7B #7B215A #7B6F21 #217B42
square
#212D7B #7B215A #7B6F21 #217B42
split-complementary
#212D7B #7B4221 #5A7B21
monochromatic
#070A1A #141B4B #212D7B #2E3FAB #485ACE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##212D7B#FFFFFF#000000##FFFFFF
##212D7B1.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)
#003A7E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212d7b;
/* rgb */ color: rgb(33, 45, 123);
/* oklch */ color: oklch(34.0% 0.132 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a65a2',
    500: '#212d7b',
    950: '#000000',
  },
}
SCSS
$custom: #212d7b;
$custom-light: #6a65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#212d7b",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 232,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34034,
    "c": 0.13237,
    "h": 270.8
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#212D7B
secondary
#AEA14A
accent
#CC47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #212D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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