#212972#212972

#212972 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.125 H 272.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#212972
RGBrgb(33, 41, 114)
HSLhsl(234, 55%, 29%)
HSVhsv(234, 71%, 45%)
CMYKcmyk(71.1%, 64%, 0%, 55.3%)
CIE-LABlab(20.53, 22.83, -43.17)
CIE-LCHlch(20.53, 48.84, 297.87°)
OKLaboklab(32.4% 0.0055 -0.1245)
OKLCHoklch(32.4% 0.125 272.5)
XYZxyz(4.4564, 3.1237, 16.2844)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212972 #726A21
analogous
#215272 #212972 #422172
triadic
#212972 #722129 #297221
tetradic
#212972 #722152 #726A21 #217242
square
#212972 #722152 #726A21 #217242
split-complementary
#212972 #724221 #527221
monochromatic
#070918 #131843 #212972 #2F3AA1 #4452C9

Accessibility & contrast

On white

12.92
#212972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212972
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212972#FFFFFF#000000##FFFFFF
##2129721.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212972;
/* rgb */ color: rgb(33, 41, 114);
/* oklch */ color: oklch(32.4% 0.125 272.5);
Tailwind
colors: {
  custom: {
    50: '#68629b',
    500: '#212972',
    950: '#000000',
  },
}
SCSS
$custom: #212972;
$custom-light: #68629b;
$custom-dark: #000000;
JSON
{
  "hex": "#212972",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 234.074,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32401,
    "c": 0.12462,
    "h": 272.5
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#212972
secondary
#A59C49
accent
#D049DE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212972

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

Preview Lab → · Contrast checker → · Palette generator →

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