#21114E#21114E

#21114E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.105 H 288.1°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#21114E
RGBrgb(33, 17, 78)
HSLhsl(256, 64%, 19%)
HSVhsv(256, 78%, 31%)
CMYKcmyk(57.7%, 78.2%, 0%, 69.4%)
CIE-LABlab(11.09, 25.76, -34.67)
CIE-LCHlch(11.09, 43.19, 306.62°)
OKLaboklab(24.49% 0.0326 -0.0996)
OKLCHoklch(24.49% 0.105 288.1)
XYZxyz(2.2024, 1.2742, 7.3361)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21114E #3E4E11
analogous
#111F4E #21114E #3F114E
triadic
#21114E #4E2111 #114E21
tetradic
#21114E #4E111F #3E4E11 #114E3F
square
#21114E #4E111F #3E4E11 #114E3F
split-complementary
#21114E #4E3F11 #1F4E11
monochromatic
#0B0519 #0C061C #21114E #361C80 #4C27B2

Accessibility & contrast

On white

16.74
#21114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#21114E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21114E
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21114E#FFFFFF#000000##FFFFFF
##21114E1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#001C4D
Tritanopia (blue-blind)
#10212E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #21114e;
/* rgb */ color: rgb(33, 17, 78);
/* oklch */ color: oklch(24.5% 0.105 288.1);
Tailwind
colors: {
  custom: {
    50: '#625080',
    500: '#21114e',
    950: '#000000',
  },
}
SCSS
$custom: #21114e;
$custom-light: #625080;
$custom-dark: #000000;
JSON
{
  "hex": "#21114e",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 255.738,
    "s": 64.211,
    "l": 18.627
  },
  "oklch": {
    "l": 0.2449,
    "c": 0.10481,
    "h": 288.1
  },
  "luminance": 0.01274
}

Semantic roles & 50–950 ramp

primary
#21114E
secondary
#718733
accent
#E741BC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21114E

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

Preview Lab → · Contrast checker → · Palette generator →

#21114E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva