#211162#211162

#211162 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.132 H 281.8°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#211162
RGBrgb(33, 17, 98)
HSLhsl(252, 70%, 23%)
HSVhsv(252, 83%, 38%)
CMYKcmyk(66.3%, 82.7%, 0%, 61.6%)
CIE-LABlab(13.27, 32.42, -44.63)
CIE-LCHlch(13.27, 55.17, 305.99°)
OKLaboklab(26.68% 0.0269 -0.1288)
OKLCHoklch(26.68% 0.132 281.8)
XYZxyz(3.0316, 1.6059, 11.7031)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211162 #526211
analogous
#112962 #211162 #4A1162
triadic
#211162 #622111 #116221
tetradic
#211162 #621129 #526211 #11624A
square
#211162 #621129 #526211 #11624A
split-complementary
#211162 #624A11 #296211
monochromatic
#09051A #0F082E #211162 #331A96 #4423CA

Accessibility & contrast

On white

15.89
#211162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#211162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211162
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211162#FFFFFF#000000##FFFFFF
##2111621.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002564
Deuteranopia (green-blind)
#001F61
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #211162;
/* rgb */ color: rgb(33, 17, 98);
/* oklch */ color: oklch(26.7% 0.132 281.8);
Tailwind
colors: {
  custom: {
    50: '#665290',
    500: '#211162',
    950: '#000000',
  },
}
SCSS
$custom: #211162;
$custom-light: #665290;
$custom-dark: #000000;
JSON
{
  "hex": "#211162",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 251.852,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26676,
    "c": 0.13154,
    "h": 281.8
  },
  "luminance": 0.01606
}

Semantic roles & 50–950 ramp

primary
#211162
secondary
#869A34
accent
#ED3BCA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020D
muted
#7A787D

Preview Lab

Preview with #211162

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

Preview Lab → · Contrast checker → · Palette generator →

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