#21124B#21124B

#21124B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.099 H 288.9°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#21124B
RGBrgb(33, 18, 75)
HSLhsl(256, 61%, 18%)
HSVhsv(256, 76%, 29%)
CMYKcmyk(56%, 76%, 0%, 70.6%)
CIE-LABlab(11.02, 24.12, -32.72)
CIE-LCHlch(11.02, 40.65, 306.41°)
OKLaboklab(24.35% 0.0322 -0.0939)
OKLCHoklch(24.35% 0.099 288.9)
XYZxyz(2.1131, 1.2639, 6.7878)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21124B #3C4B12
analogous
#12204B #21124B #3D124B
triadic
#21124B #4B2112 #124B21
tetradic
#21124B #4B1220 #3C4B12 #124B3D
square
#21124B #4B1220 #3C4B12 #124B3D
split-complementary
#21124B #4B3D12 #204B12
monochromatic
#0B0619 #0B061A #21124B #371E7C #4C2AAE

Accessibility & contrast

On white

16.76
#21124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21124B
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21124B#FFFFFF#000000##FFFFFF
##21124B1.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21124b;
/* rgb */ color: rgb(33, 18, 75);
/* oklch */ color: oklch(24.3% 0.099 288.9);
Tailwind
colors: {
  custom: {
    50: '#61517e',
    500: '#21124b',
    950: '#000000',
  },
}
SCSS
$custom: #21124b;
$custom-light: #61517e;
$custom-dark: #000000;
JSON
{
  "hex": "#21124b",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 255.789,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24345,
    "c": 0.09924,
    "h": 288.9
  },
  "luminance": 0.01264
}

Semantic roles & 50–950 ramp

primary
#21124B
secondary
#6F8435
accent
#E443BA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21124B

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

Preview Lab → · Contrast checker → · Palette generator →

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