#211871#211871

#211871 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.144 H 277.3°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#211871
RGBrgb(33, 24, 113)
HSLhsl(246, 65%, 27%)
HSVhsv(246, 79%, 44%)
CMYKcmyk(70.8%, 78.8%, 0%, 55.7%)
CIE-LABlab(16.35, 33.52, -49.39)
CIE-LCHlch(16.35, 59.69, 304.16°)
OKLaboklab(29.35% 0.0183 -0.1427)
OKLCHoklch(29.35% 0.144 277.3)
XYZxyz(3.9335, 2.1685, 15.8309)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211871 #687118
analogous
#183C71 #211871 #4E1871
triadic
#211871 #712118 #187121
tetradic
#211871 #71183C #687118 #18714E
square
#211871 #71183C #687118 #18714E
split-complementary
#211871 #714E18 #3C7118
monochromatic
#070519 #120D3F #211871 #3023A3 #4130D3

Accessibility & contrast

On white

14.65
#211871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#211871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211871
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211871#FFFFFF#000000##FFFFFF
##2118711.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #211871;
/* rgb */ color: rgb(33, 24, 113);
/* oklch */ color: oklch(29.3% 0.144 277.3);
Tailwind
colors: {
  custom: {
    50: '#69579b',
    500: '#211871',
    950: '#000000',
  },
}
SCSS
$custom: #211871;
$custom-light: #69579b;
$custom-dark: #000000;
JSON
{
  "hex": "#211871",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 246.067,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29346,
    "c": 0.14388,
    "h": 277.3
  },
  "luminance": 0.02169
}

Semantic roles & 50–950 ramp

primary
#211871
secondary
#9CA63E
accent
#E840D7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #211871

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

Preview Lab → · Contrast checker → · Palette generator →

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