#212872#212872

#212872 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.126 H 272.9°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#212872
RGBrgb(33, 40, 114)
HSLhsl(235, 55%, 29%)
HSVhsv(235, 71%, 45%)
CMYKcmyk(71.1%, 64.9%, 0%, 55.3%)
CIE-LABlab(20.26, 23.52, -43.61)
CIE-LCHlch(20.26, 49.55, 298.34°)
OKLaboklab(32.2% 0.0064 -0.1258)
OKLCHoklch(32.2% 0.126 272.9)
XYZxyz(4.4222, 3.0554, 16.2730)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212872 #726B21
analogous
#215172 #212872 #432172
triadic
#212872 #722128 #287221
tetradic
#212872 #722151 #726B21 #217243
square
#212872 #722151 #726B21 #217243
split-complementary
#212872 #724321 #517221
monochromatic
#070818 #131743 #212872 #2F39A1 #4450C9

Accessibility & contrast

On white

13.03
#212872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212872
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212872#FFFFFF#000000##FFFFFF
##2128721.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212872;
/* rgb */ color: rgb(33, 40, 114);
/* oklch */ color: oklch(32.2% 0.126 272.9);
Tailwind
colors: {
  custom: {
    50: '#68629b',
    500: '#212872',
    950: '#000000',
  },
}
SCSS
$custom: #212872;
$custom-light: #68629b;
$custom-dark: #000000;
JSON
{
  "hex": "#212872",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 234.815,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32203,
    "c": 0.12596,
    "h": 272.9
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#212872
secondary
#A59D49
accent
#D249DE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212872

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

Preview Lab → · Contrast checker → · Palette generator →

#212872 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva