#212E7D#212E7D

#212E7D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.134 H 270.5°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#212E7D
RGBrgb(33, 46, 125)
HSLhsl(232, 58%, 31%)
HSVhsv(232, 74%, 49%)
CMYKcmyk(73.6%, 63.2%, 0%, 51%)
CIE-LABlab(22.85, 23.61, -46.40)
CIE-LCHlch(22.85, 52.06, 296.96°)
OKLaboklab(34.42% 0.0011 -0.1339)
OKLCHoklch(34.42% 0.134 270.5)
XYZxyz(5.3046, 3.7575, 19.8438)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E7D #7D7021
analogous
#215C7D #212E7D #42217D
triadic
#212E7D #7D212E #2E7D21
tetradic
#212E7D #7D215C #7D7021 #217D42
square
#212E7D #7D215C #7D7021 #217D42
split-complementary
#212E7D #7D4221 #5C7D21
monochromatic
#070A1C #141C4D #212E7D #2E40AD #495CCF

Accessibility & contrast

On white

11.99
#212E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#212E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E7D
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E7D#FFFFFF#000000##FFFFFF
##212E7D1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212e7d;
/* rgb */ color: rgb(33, 46, 125);
/* oklch */ color: oklch(34.4% 0.134 270.5);
Tailwind
colors: {
  custom: {
    50: '#6a66a3',
    500: '#212e7d',
    950: '#000000',
  },
}
SCSS
$custom: #212e7d;
$custom-light: #6a66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#212e7d",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 231.522,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34419,
    "c": 0.13393,
    "h": 270.5
  },
  "luminance": 0.03758
}

Semantic roles & 50–950 ramp

primary
#212E7D
secondary
#B0A14A
accent
#CC46E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #212E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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