#212771#212771

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

Color values

HEX#212771
RGBrgb(33, 39, 113)
HSLhsl(236, 55%, 29%)
HSVhsv(236, 71%, 44%)
CMYKcmyk(70.8%, 65.5%, 0%, 55.7%)
CIE-LABlab(19.91, 23.83, -43.55)
CIE-LCHlch(19.91, 49.64, 298.69°)
OKLaboklab(31.91% 0.0073 -0.1256)
OKLCHoklch(31.91% 0.126 273.3)
XYZxyz(4.3324, 2.9662, 15.9638)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212771 #716B21
analogous
#214F71 #212771 #432171
triadic
#212771 #712127 #277121
tetradic
#212771 #71214F #716B21 #217143
square
#212771 #71214F #716B21 #217143
split-complementary
#212771 #714321 #4F7121
monochromatic
#070818 #131742 #212771 #2F37A0 #444EC8

Accessibility & contrast

On white

13.18
#212771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#212771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212771
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212771#FFFFFF#000000##FFFFFF
##2127711.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212771;
/* rgb */ color: rgb(33, 39, 113);
/* oklch */ color: oklch(31.9% 0.126 273.3);
Tailwind
colors: {
  custom: {
    50: '#68619b',
    500: '#212771',
    950: '#000000',
  },
}
SCSS
$custom: #212771;
$custom-light: #68619b;
$custom-dark: #000000;
JSON
{
  "hex": "#212771",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 235.5,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31913,
    "c": 0.12583,
    "h": 273.3
  },
  "luminance": 0.02967
}

Semantic roles & 50–950 ramp

primary
#212771
secondary
#A59E49
accent
#D34ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212771

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

Preview Lab → · Contrast checker → · Palette generator →

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