#212E7B#212E7B

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

Color values

HEX#212E7B
RGBrgb(33, 46, 123)
HSLhsl(231, 58%, 31%)
HSVhsv(231, 73%, 48%)
CMYKcmyk(73.2%, 62.6%, 0%, 51.8%)
CIE-LABlab(22.68, 22.83, -45.42)
CIE-LCHlch(22.68, 50.84, 296.69°)
OKLaboklab(34.23% 0.0012 -0.131)
OKLCHoklch(34.23% 0.131 270.5)
XYZxyz(5.1781, 3.7069, 19.1777)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E7B #7B6E21
analogous
#215B7B #212E7B #41217B
triadic
#212E7B #7B212E #2E7B21
tetradic
#212E7B #7B215B #7B6E21 #217B41
square
#212E7B #7B215B #7B6E21 #217B41
split-complementary
#212E7B #7B4121 #5B7B21
monochromatic
#070A1A #141C4B #212E7B #2E40AB #485CCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #212e7b;
/* rgb */ color: rgb(33, 46, 123);
/* oklch */ color: oklch(34.2% 0.131 270.5);
Tailwind
colors: {
  custom: {
    50: '#6a66a2',
    500: '#212e7b',
    950: '#000000',
  },
}
SCSS
$custom: #212e7b;
$custom-light: #6a66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#212e7b",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 231.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34234,
    "c": 0.13106,
    "h": 270.5
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#212E7B
secondary
#AE9F4A
accent
#CB47E1
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #212E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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