#21124A#21124A

#21124A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.2% C 0.098 H 289.3°. Best body text is #FFFFFF at 16.80:1 contrast (WCAG AA passes).

Color values

HEX#21124A
RGBrgb(33, 18, 74)
HSLhsl(256, 61%, 18%)
HSVhsv(256, 76%, 29%)
CMYKcmyk(55.4%, 75.7%, 0%, 71%)
CIE-LABlab(10.92, 23.79, -32.18)
CIE-LCHlch(10.92, 40.02, 306.47°)
OKLaboklab(24.25% 0.0323 -0.0923)
OKLCHoklch(24.25% 0.098 289.3)
XYZxyz(2.0792, 1.2503, 6.6090)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21124A #3B4A12
analogous
#121F4A #21124A #3D124A
triadic
#21124A #4A2112 #124A21
tetradic
#21124A #4A121F #3B4A12 #124A3D
square
#21124A #4A121F #3B4A12 #124A3D
split-complementary
#21124A #4A3D12 #1F4A12
monochromatic
#0B0619 #0B0619 #21124A #371E7B #4D2AAC

Accessibility & contrast

On white

16.80
#21124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21124A
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21124A#FFFFFF#000000##FFFFFF
##21124A1.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001C49
Tritanopia (blue-blind)
#13202C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #21124a;
/* rgb */ color: rgb(33, 18, 74);
/* oklch */ color: oklch(24.2% 0.098 289.3);
Tailwind
colors: {
  custom: {
    50: '#61517d',
    500: '#21124a',
    950: '#000000',
  },
}
SCSS
$custom: #21124a;
$custom-light: #61517d;
$custom-dark: #000000;
JSON
{
  "hex": "#21124a",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 256.071,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24246,
    "c": 0.09782,
    "h": 289.3
  },
  "luminance": 0.0125
}

Semantic roles & 50–950 ramp

primary
#21124A
secondary
#6E8335
accent
#E444B9
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #21124A

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

Preview Lab → · Contrast checker → · Palette generator →

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