#211158#211158

#211158 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.118 H 284.6°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#211158
RGBrgb(33, 17, 88)
HSLhsl(254, 68%, 21%)
HSVhsv(254, 81%, 35%)
CMYKcmyk(62.5%, 80.7%, 0%, 65.5%)
CIE-LABlab(12.15, 29.11, -39.77)
CIE-LCHlch(12.15, 49.28, 306.20°)
OKLaboklab(25.56% 0.0299 -0.1146)
OKLCHoklch(25.56% 0.118 284.6)
XYZxyz(2.5886, 1.4287, 9.3700)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211158 #485811
analogous
#112458 #211158 #441158
triadic
#211158 #582111 #115821
tetradic
#211158 #581124 #485811 #115844
square
#211158 #581124 #485811 #115844
split-complementary
#211158 #584411 #245811
monochromatic
#0A051A #0E0725 #211158 #341B8B #4725BF

Accessibility & contrast

On white

16.33
#211158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#211158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211158
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211158#FFFFFF#000000##FFFFFF
##2111581.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#001E57
Tritanopia (blue-blind)
#042533
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #211158;
/* rgb */ color: rgb(33, 17, 88);
/* oklch */ color: oklch(25.6% 0.118 284.6);
Tailwind
colors: {
  custom: {
    50: '#645188',
    500: '#211158',
    950: '#000000',
  },
}
SCSS
$custom: #211158;
$custom-light: #645188;
$custom-dark: #000000;
JSON
{
  "hex": "#211158",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 253.521,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25556,
    "c": 0.11841,
    "h": 284.6
  },
  "luminance": 0.01429
}

Semantic roles & 50–950 ramp

primary
#211158
secondary
#7C9134
accent
#EA3DC3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #211158

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

Preview Lab → · Contrast checker → · Palette generator →

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