#212E72#212E72

#212E72 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.4% C 0.118 H 270.5°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#212E72
RGBrgb(33, 46, 114)
HSLhsl(230, 55%, 29%)
HSVhsv(230, 71%, 45%)
CMYKcmyk(71.1%, 59.6%, 0%, 55.3%)
CIE-LABlab(21.91, 19.32, -40.92)
CIE-LCHlch(21.91, 45.26, 295.27°)
OKLaboklab(33.43% 0.0011 -0.1178)
OKLCHoklch(33.43% 0.118 270.5)
XYZxyz(4.6404, 3.4918, 16.3458)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E72 #726521
analogous
#215772 #212E72 #3D2172
triadic
#212E72 #72212E #2E7221
tetradic
#212E72 #722157 #726521 #21723D
square
#212E72 #722157 #726521 #21723D
split-complementary
#212E72 #723D21 #577221
monochromatic
#070A18 #131B43 #212E72 #2F41A1 #445AC9

Accessibility & contrast

On white

12.36
#212E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#212E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E72
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E72#FFFFFF#000000##FFFFFF
##212E721.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212e72;
/* rgb */ color: rgb(33, 46, 114);
/* oklch */ color: oklch(33.4% 0.118 270.5);
Tailwind
colors: {
  custom: {
    50: '#67669b',
    500: '#212e72',
    950: '#000000',
  },
}
SCSS
$custom: #212e72;
$custom-light: #67669b;
$custom-dark: #000000;
JSON
{
  "hex": "#212e72",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 114
  },
  "hsl": {
    "h": 230.37,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33427,
    "c": 0.11783,
    "h": 270.5
  },
  "luminance": 0.03492
}

Semantic roles & 50–950 ramp

primary
#212E72
secondary
#A59749
accent
#C749DE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #212E72

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

Preview Lab → · Contrast checker → · Palette generator →

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