#211157#211157

#211157 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.117 H 285.0°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#211157
RGBrgb(33, 17, 87)
HSLhsl(254, 67%, 20%)
HSVhsv(254, 80%, 34%)
CMYKcmyk(62.1%, 80.5%, 0%, 65.9%)
CIE-LABlab(12.04, 28.78, -39.27)
CIE-LCHlch(12.04, 48.68, 306.23°)
OKLaboklab(25.45% 0.0302 -0.1131)
OKLCHoklch(25.45% 0.117 285)
XYZxyz(2.5474, 1.4122, 9.1533)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211157 #475711
analogous
#112457 #211157 #441157
triadic
#211157 #572111 #115721
tetradic
#211157 #571124 #475711 #115744
square
#211157 #571124 #475711 #115744
split-complementary
#211157 #574411 #245711
monochromatic
#0A051A #0E0724 #211157 #341B8A #4825BD

Accessibility & contrast

On white

16.38
#211157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#211157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211157
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211157#FFFFFF#000000##FFFFFF
##2111571.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#001D56
Tritanopia (blue-blind)
#052533
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #211157;
/* rgb */ color: rgb(33, 17, 87);
/* oklch */ color: oklch(25.4% 0.117 285.0);
Tailwind
colors: {
  custom: {
    50: '#645187',
    500: '#211157',
    950: '#000000',
  },
}
SCSS
$custom: #211157;
$custom-light: #645187;
$custom-dark: #000000;
JSON
{
  "hex": "#211157",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 253.714,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25447,
    "c": 0.11707,
    "h": 285
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#211157
secondary
#7B9034
accent
#EA3EC3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #211157

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

Preview Lab → · Contrast checker → · Palette generator →

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