#212971#212971

#212971 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.123 H 272.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#212971
RGBrgb(33, 41, 113)
HSLhsl(234, 55%, 29%)
HSVhsv(234, 71%, 44%)
CMYKcmyk(70.8%, 63.7%, 0%, 55.7%)
CIE-LABlab(20.44, 22.44, -42.67)
CIE-LCHlch(20.44, 48.22, 297.74°)
OKLaboklab(32.31% 0.0056 -0.123)
OKLCHoklch(32.31% 0.123 272.6)
XYZxyz(4.3998, 3.1011, 15.9863)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212971 #716921
analogous
#215171 #212971 #412171
triadic
#212971 #712129 #297121
tetradic
#212971 #712151 #716921 #217141
square
#212971 #712151 #716921 #217141
split-complementary
#212971 #714121 #517121
monochromatic
#070918 #131842 #212971 #2F3AA0 #4451C8

Accessibility & contrast

On white

12.96
#212971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212971
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212971#FFFFFF#000000##FFFFFF
##2129711.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212971;
/* rgb */ color: rgb(33, 41, 113);
/* oklch */ color: oklch(32.3% 0.123 272.6);
Tailwind
colors: {
  custom: {
    50: '#68629a',
    500: '#212971',
    950: '#000000',
  },
}
SCSS
$custom: #212971;
$custom-light: #68629a;
$custom-dark: #000000;
JSON
{
  "hex": "#212971",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 234,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32308,
    "c": 0.12317,
    "h": 272.6
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#212971
secondary
#A59B49
accent
#CF4ADE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212971

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

Preview Lab → · Contrast checker → · Palette generator →

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