#212371#212371

#212371 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.131 H 274.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#212371
RGBrgb(33, 35, 113)
HSLhsl(239, 55%, 29%)
HSVhsv(239, 71%, 44%)
CMYKcmyk(70.8%, 69%, 0%, 55.7%)
CIE-LABlab(18.87, 26.56, -45.24)
CIE-LCHlch(18.87, 52.46, 300.42°)
OKLaboklab(31.16% 0.0106 -0.1306)
OKLCHoklch(31.16% 0.131 274.6)
XYZxyz(4.2079, 2.7173, 15.9223)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212371 #716F21
analogous
#214B71 #212371 #472171
triadic
#212371 #712123 #237121
tetradic
#212371 #71214B #716F21 #217147
square
#212371 #71214B #716F21 #217147
split-complementary
#212371 #714721 #4B7121
monochromatic
#070718 #131442 #212371 #2F32A0 #4447C8

Accessibility & contrast

On white

13.60
#212371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#212371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212371
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212371#FFFFFF#000000##FFFFFF
##2123711.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212371;
/* rgb */ color: rgb(33, 35, 113);
/* oklch */ color: oklch(31.2% 0.131 274.6);
Tailwind
colors: {
  custom: {
    50: '#685e9b',
    500: '#212371',
    950: '#000000',
  },
}
SCSS
$custom: #212371;
$custom-light: #685e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#212371",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 238.5,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31157,
    "c": 0.13104,
    "h": 274.6
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#212371
secondary
#A5A249
accent
#DA4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212371

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

Preview Lab → · Contrast checker → · Palette generator →

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