#211161#211161

#211161 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.130 H 282.1°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#211161
RGBrgb(33, 17, 97)
HSLhsl(252, 70%, 22%)
HSVhsv(252, 82%, 38%)
CMYKcmyk(66%, 82.5%, 0%, 62%)
CIE-LABlab(13.15, 32.09, -44.16)
CIE-LCHlch(13.15, 54.59, 306.01°)
OKLaboklab(26.56% 0.0272 -0.1274)
OKLCHoklch(26.56% 0.13 282.1)
XYZxyz(2.9846, 1.5871, 11.4560)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211161 #516111
analogous
#112961 #211161 #491161
triadic
#211161 #612111 #116121
tetradic
#211161 #611129 #516111 #116149
square
#211161 #611129 #516111 #116149
split-complementary
#211161 #614911 #296111
monochromatic
#09051A #0F082D #211161 #331A95 #4423C9

Accessibility & contrast

On white

15.94
#211161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #211161
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211161#FFFFFF#000000##FFFFFF
##2111611.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002463
Deuteranopia (green-blind)
#001F60
Tritanopia (blue-blind)
#002839
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #211161;
/* rgb */ color: rgb(33, 17, 97);
/* oklch */ color: oklch(26.6% 0.130 282.1);
Tailwind
colors: {
  custom: {
    50: '#66528f',
    500: '#211161',
    950: '#000000',
  },
}
SCSS
$custom: #211161;
$custom-light: #66528f;
$custom-dark: #000000;
JSON
{
  "hex": "#211161",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 252,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26562,
    "c": 0.13025,
    "h": 282.1
  },
  "luminance": 0.01587
}

Semantic roles & 50–950 ramp

primary
#211161
secondary
#859934
accent
#ED3BC9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #211161

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

Preview Lab → · Contrast checker → · Palette generator →

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