#212472#212472

#212472 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.131 H 274.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#212472
RGBrgb(33, 36, 114)
HSLhsl(238, 55%, 29%)
HSVhsv(238, 71%, 45%)
CMYKcmyk(71.1%, 68.4%, 0%, 55.3%)
CIE-LABlab(19.22, 26.26, -45.32)
CIE-LCHlch(19.22, 52.37, 300.09°)
OKLaboklab(31.44% 0.0097 -0.1308)
OKLCHoklch(31.44% 0.131 274.2)
XYZxyz(4.2943, 2.7996, 16.2304)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212472 #726F21
analogous
#214D72 #212472 #472172
triadic
#212472 #722124 #247221
tetradic
#212472 #72214D #726F21 #217247
square
#212472 #72214D #726F21 #217247
split-complementary
#212472 #724721 #4D7221
monochromatic
#070718 #131543 #212472 #2F33A1 #4449C9

Accessibility & contrast

On white

13.46
#212472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#212472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212472
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212472#FFFFFF#000000##FFFFFF
##2124721.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212472;
/* rgb */ color: rgb(33, 36, 114);
/* oklch */ color: oklch(31.4% 0.131 274.2);
Tailwind
colors: {
  custom: {
    50: '#685f9b',
    500: '#212472',
    950: '#000000',
  },
}
SCSS
$custom: #212472;
$custom-light: #685f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#212472",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 114
  },
  "hsl": {
    "h": 237.778,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3144,
    "c": 0.13118,
    "h": 274.2
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#212472
secondary
#A5A249
accent
#D949DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212472

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

Preview Lab → · Contrast checker → · Palette generator →

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