#212871#212871

#212871 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.125 H 273.0°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#212871
RGBrgb(33, 40, 113)
HSLhsl(235, 55%, 29%)
HSVhsv(235, 71%, 44%)
CMYKcmyk(70.8%, 64.6%, 0%, 55.7%)
CIE-LABlab(20.17, 23.14, -43.11)
CIE-LCHlch(20.17, 48.93, 298.22°)
OKLaboklab(32.11% 0.0064 -0.1243)
OKLCHoklch(32.11% 0.125 273)
XYZxyz(4.3656, 3.0328, 15.9749)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212871 #716A21
analogous
#215071 #212871 #422171
triadic
#212871 #712128 #287121
tetradic
#212871 #712150 #716A21 #217142
square
#212871 #712150 #716A21 #217142
split-complementary
#212871 #714221 #507121
monochromatic
#070818 #131742 #212871 #2F39A0 #4450C8

Accessibility & contrast

On white

13.07
#212871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212871
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212871#FFFFFF#000000##FFFFFF
##2128711.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212871;
/* rgb */ color: rgb(33, 40, 113);
/* oklch */ color: oklch(32.1% 0.125 273.0);
Tailwind
colors: {
  custom: {
    50: '#68629a',
    500: '#212871',
    950: '#000000',
  },
}
SCSS
$custom: #212871;
$custom-light: #68629a;
$custom-dark: #000000;
JSON
{
  "hex": "#212871",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 234.75,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32109,
    "c": 0.12451,
    "h": 273
  },
  "luminance": 0.03033
}

Semantic roles & 50–950 ramp

primary
#212871
secondary
#A59D49
accent
#D14ADE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212871

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

Preview Lab → · Contrast checker → · Palette generator →

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