#21114B#21114B

#21114B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.101 H 289.3°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#21114B
RGBrgb(33, 17, 75)
HSLhsl(257, 63%, 18%)
HSVhsv(257, 77%, 29%)
CMYKcmyk(56%, 77.3%, 0%, 70.6%)
CIE-LABlab(10.79, 24.76, -33.09)
CIE-LCHlch(10.79, 41.33, 306.81°)
OKLaboklab(24.18% 0.0332 -0.095)
OKLCHoklch(24.18% 0.101 289.3)
XYZxyz(2.0973, 1.2321, 6.7826)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21114B #3B4B11
analogous
#111E4B #21114B #3E114B
triadic
#21114B #4B2111 #114B21
tetradic
#21114B #4B111E #3B4B11 #114B3E
square
#21114B #4B111E #3B4B11 #114B3E
split-complementary
#21114B #4B3E11 #1E4B11
monochromatic
#0B0619 #0B0619 #21114B #371C7D #4D28AF

Accessibility & contrast

On white

16.85
#21114B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21114B
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21114B#FFFFFF#000000##FFFFFF
##21114B1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001C4A
Tritanopia (blue-blind)
#12202C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #21114b;
/* rgb */ color: rgb(33, 17, 75);
/* oklch */ color: oklch(24.2% 0.101 289.3);
Tailwind
colors: {
  custom: {
    50: '#61507e',
    500: '#21114b',
    950: '#000000',
  },
}
SCSS
$custom: #21114b;
$custom-light: #61507e;
$custom-dark: #000000;
JSON
{
  "hex": "#21114b",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 256.552,
    "s": 63.043,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24182,
    "c": 0.10063,
    "h": 289.3
  },
  "luminance": 0.01232
}

Semantic roles & 50–950 ramp

primary
#21114B
secondary
#6E8433
accent
#E642B9
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21114B

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

Preview Lab → · Contrast checker → · Palette generator →

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