#212571#212571

#212571 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.128 H 274.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#212571
RGBrgb(33, 37, 113)
HSLhsl(237, 55%, 29%)
HSVhsv(237, 71%, 44%)
CMYKcmyk(70.8%, 67.3%, 0%, 55.7%)
CIE-LABlab(19.38, 25.21, -44.41)
CIE-LCHlch(19.38, 51.06, 299.58°)
OKLaboklab(31.53% 0.0089 -0.1281)
OKLCHoklch(31.53% 0.128 274)
XYZxyz(4.2684, 2.8383, 15.9425)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212571 #716D21
analogous
#214D71 #212571 #452171
triadic
#212571 #712125 #257121
tetradic
#212571 #71214D #716D21 #217145
square
#212571 #71214D #716D21 #217145
split-complementary
#212571 #714521 #4D7121
monochromatic
#070818 #131542 #212571 #2F35A0 #444BC8

Accessibility & contrast

On white

13.39
#212571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#212571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212571
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212571#FFFFFF#000000##FFFFFF
##2125711.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212571;
/* rgb */ color: rgb(33, 37, 113);
/* oklch */ color: oklch(31.5% 0.128 274.0);
Tailwind
colors: {
  custom: {
    50: '#685f9b',
    500: '#212571',
    950: '#000000',
  },
}
SCSS
$custom: #212571;
$custom-light: #685f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#212571",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 237,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31529,
    "c": 0.12846,
    "h": 274
  },
  "luminance": 0.02839
}

Semantic roles & 50–950 ramp

primary
#212571
secondary
#A5A049
accent
#D74ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212571

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

Preview Lab → · Contrast checker → · Palette generator →

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