#212172#212172

#212172 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.135 H 275.1°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#212172
RGBrgb(33, 33, 114)
HSLhsl(240, 55%, 29%)
HSVhsv(240, 71%, 45%)
CMYKcmyk(71.1%, 71.1%, 0%, 55.3%)
CIE-LABlab(18.48, 28.26, -46.54)
CIE-LCHlch(18.48, 54.45, 301.27°)
OKLaboklab(30.9% 0.012 -0.1344)
OKLCHoklch(30.9% 0.135 275.1)
XYZxyz(4.2073, 2.6256, 16.2014)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212172 #727221
analogous
#214A72 #212172 #4A2172
triadic
#212172 #722121 #217221
tetradic
#212172 #72214A #727221 #21724A
square
#212172 #72214A #727221 #21724A
split-complementary
#212172 #724A21 #4A7221
monochromatic
#070718 #131343 #212172 #2F2FA1 #4444C9

Accessibility & contrast

On white

13.77
#212172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#212172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212172
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212172#FFFFFF#000000##FFFFFF
##2121721.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212172;
/* rgb */ color: rgb(33, 33, 114);
/* oklch */ color: oklch(30.9% 0.135 275.1);
Tailwind
colors: {
  custom: {
    50: '#695d9b',
    500: '#212172',
    950: '#000000',
  },
}
SCSS
$custom: #212172;
$custom-light: #695d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#212172",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 240,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30899,
    "c": 0.13494,
    "h": 275.1
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#212172
secondary
#A5A549
accent
#DE49DE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212172

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

Preview Lab → · Contrast checker → · Palette generator →

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