#211171#211171

#211171 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.151 H 278.4°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#211171
RGBrgb(33, 17, 113)
HSLhsl(250, 74%, 25%)
HSVhsv(250, 85%, 44%)
CMYKcmyk(70.8%, 85%, 0%, 55.7%)
CIE-LABlab(15.04, 37.28, -51.55)
CIE-LCHlch(15.04, 63.62, 305.87°)
OKLaboklab(28.43% 0.0221 -0.1489)
OKLCHoklch(28.43% 0.151 278.4)
XYZxyz(3.8073, 1.9162, 15.7888)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211171 #617111
analogous
#113171 #211171 #511171
triadic
#211171 #712111 #117121
tetradic
#211171 #711131 #617111 #117151
square
#211171 #711131 #617111 #117151
split-complementary
#211171 #715111 #317111
monochromatic
#08041B #11093C #211171 #3119A6 #4021DB

Accessibility & contrast

On white

15.18
#211171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#211171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211171
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211171#FFFFFF#000000##FFFFFF
##2111711.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #211171;
/* rgb */ color: rgb(33, 17, 113);
/* oklch */ color: oklch(28.4% 0.151 278.4);
Tailwind
colors: {
  custom: {
    50: '#6a539b',
    500: '#211171',
    950: '#000000',
  },
}
SCSS
$custom: #211171;
$custom-light: #6a539b;
$custom-dark: #000000;
JSON
{
  "hex": "#211171",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 250,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28434,
    "c": 0.15054,
    "h": 278.4
  },
  "luminance": 0.01916
}

Semantic roles & 50–950 ramp

primary
#211171
secondary
#95A836
accent
#F137D2
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #211171

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

Preview Lab → · Contrast checker → · Palette generator →

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