#211156#211156

#211156 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.116 H 285.3°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#211156
RGBrgb(33, 17, 86)
HSLhsl(254, 67%, 20%)
HSVhsv(254, 80%, 34%)
CMYKcmyk(61.6%, 80.2%, 0%, 66.3%)
CIE-LABlab(11.93, 28.44, -38.77)
CIE-LCHlch(11.93, 48.08, 306.26°)
OKLaboklab(25.34% 0.0305 -0.1116)
OKLCHoklch(25.34% 0.116 285.3)
XYZxyz(2.5069, 1.3960, 8.9396)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211156 #465611
analogous
#112356 #211156 #431156
triadic
#211156 #562111 #115621
tetradic
#211156 #561123 #465611 #115643
square
#211156 #561123 #465611 #115643
split-complementary
#211156 #564311 #235611
monochromatic
#0A051A #0D0723 #211156 #351B89 #4825BC

Accessibility & contrast

On white

16.42
#211156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #211156
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211156#FFFFFF#000000##FFFFFF
##2111561.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001D55
Tritanopia (blue-blind)
#072432
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #211156;
/* rgb */ color: rgb(33, 17, 86);
/* oklch */ color: oklch(25.3% 0.116 285.3);
Tailwind
colors: {
  custom: {
    50: '#645186',
    500: '#211156',
    950: '#000000',
  },
}
SCSS
$custom: #211156;
$custom-light: #645186;
$custom-dark: #000000;
JSON
{
  "hex": "#211156",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 253.913,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25338,
    "c": 0.11572,
    "h": 285.3
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#211156
secondary
#7A8F34
accent
#EA3EC2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #211156

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

Preview Lab → · Contrast checker → · Palette generator →

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