#211872#211872

#211872 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.145 H 277.1°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#211872
RGBrgb(33, 24, 114)
HSLhsl(246, 65%, 27%)
HSVhsv(246, 79%, 45%)
CMYKcmyk(71.1%, 78.9%, 0%, 55.3%)
CIE-LABlab(16.46, 33.86, -49.86)
CIE-LCHlch(16.46, 60.27, 304.18°)
OKLaboklab(29.46% 0.018 -0.1441)
OKLCHoklch(29.46% 0.145 277.1)
XYZxyz(3.9901, 2.1912, 16.1290)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211872 #697218
analogous
#183C72 #211872 #4E1872
triadic
#211872 #722118 #187221
tetradic
#211872 #72183C #697218 #18724E
square
#211872 #72183C #697218 #18724E
split-complementary
#211872 #724E18 #3C7218
monochromatic
#070519 #120D3F #211872 #3023A5 #4131D4

Accessibility & contrast

On white

14.60
#211872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#211872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211872
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211872#FFFFFF#000000##FFFFFF
##2118721.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #211872;
/* rgb */ color: rgb(33, 24, 114);
/* oklch */ color: oklch(29.5% 0.145 277.1);
Tailwind
colors: {
  custom: {
    50: '#6a579c',
    500: '#211872',
    950: '#000000',
  },
}
SCSS
$custom: #211872;
$custom-light: #6a579c;
$custom-dark: #000000;
JSON
{
  "hex": "#211872",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 246,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29459,
    "c": 0.14518,
    "h": 277.1
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #211872

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

Preview Lab → · Contrast checker → · Palette generator →

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