#21114C#21114C

#21114C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.102 H 288.9°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#21114C
RGBrgb(33, 17, 76)
HSLhsl(256, 63%, 18%)
HSVhsv(256, 78%, 30%)
CMYKcmyk(56.6%, 77.6%, 0%, 70.2%)
CIE-LABlab(10.89, 25.09, -33.62)
CIE-LCHlch(10.89, 41.95, 306.74°)
OKLaboklab(24.28% 0.033 -0.0965)
OKLCHoklch(24.28% 0.102 288.9)
XYZxyz(2.1318, 1.2459, 6.9642)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21114C #3C4C11
analogous
#111E4C #21114C #3E114C
triadic
#21114C #4C2111 #114C21
tetradic
#21114C #4C111E #3C4C11 #114C3E
square
#21114C #4C111E #3C4C11 #114C3E
split-complementary
#21114C #4C3E11 #1E4C11
monochromatic
#0B0619 #0B061A #21114C #371C7E #4C27B0

Accessibility & contrast

On white

16.81
#21114C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21114C
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21114C#FFFFFF#000000##FFFFFF
##21114C1.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001C4B
Tritanopia (blue-blind)
#11202D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #21114c;
/* rgb */ color: rgb(33, 17, 76);
/* oklch */ color: oklch(24.3% 0.102 288.9);
Tailwind
colors: {
  custom: {
    50: '#62507f',
    500: '#21114c',
    950: '#000000',
  },
}
SCSS
$custom: #21114c;
$custom-light: #62507f;
$custom-dark: #000000;
JSON
{
  "hex": "#21114c",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 76
  },
  "hsl": {
    "h": 256.271,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24284,
    "c": 0.10202,
    "h": 288.9
  },
  "luminance": 0.01246
}

Semantic roles & 50–950 ramp

primary
#21114C
secondary
#6F8533
accent
#E641BA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21114C

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

Preview Lab → · Contrast checker → · Palette generator →

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