#212772#212772

#212772 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.127 H 273.3°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#212772
RGBrgb(33, 39, 114)
HSLhsl(236, 55%, 29%)
HSVhsv(236, 71%, 45%)
CMYKcmyk(71.1%, 65.8%, 0%, 55.3%)
CIE-LABlab(20.00, 24.21, -44.04)
CIE-LCHlch(20.00, 50.26, 298.80°)
OKLaboklab(32.01% 0.0072 -0.1271)
OKLCHoklch(32.01% 0.127 273.3)
XYZxyz(4.3890, 2.9889, 16.2619)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212772 #726C21
analogous
#215072 #212772 #442172
triadic
#212772 #722127 #277221
tetradic
#212772 #722150 #726C21 #217244
square
#212772 #722150 #726C21 #217244
split-complementary
#212772 #724421 #507221
monochromatic
#070818 #131743 #212772 #2F37A1 #444EC9

Accessibility & contrast

On white

13.14
#212772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#212772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212772
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212772#FFFFFF#000000##FFFFFF
##2127721.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212772;
/* rgb */ color: rgb(33, 39, 114);
/* oklch */ color: oklch(32.0% 0.127 273.3);
Tailwind
colors: {
  custom: {
    50: '#68619b',
    500: '#212772',
    950: '#000000',
  },
}
SCSS
$custom: #212772;
$custom-light: #68619b;
$custom-dark: #000000;
JSON
{
  "hex": "#212772",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 235.556,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32008,
    "c": 0.12728,
    "h": 273.3
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#212772
secondary
#A59F49
accent
#D349DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212772

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

Preview Lab → · Contrast checker → · Palette generator →

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