#21125D#21125D

#21125D is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.3% C 0.124 H 282.9°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#21125D
RGBrgb(33, 18, 93)
HSLhsl(252, 68%, 22%)
HSVhsv(252, 81%, 36%)
CMYKcmyk(64.5%, 80.6%, 0%, 63.5%)
CIE-LABlab(12.90, 30.20, -41.90)
CIE-LCHlch(12.90, 51.65, 305.79°)
OKLaboklab(26.25% 0.0277 -0.1208)
OKLCHoklch(26.25% 0.124 282.9)
XYZxyz(2.8187, 1.5461, 10.5037)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21125D #4E5D12
analogous
#12295D #21125D #47125D
triadic
#21125D #5D2112 #125D21
tetradic
#21125D #5D1229 #4E5D12 #125D47
square
#21125D #5D1229 #4E5D12 #125D47
split-complementary
#21125D #5D4712 #295D12
monochromatic
#09051A #0F082A #21125D #331C90 #4526C4

Accessibility & contrast

On white

16.04
#21125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#21125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21125D
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21125D#FFFFFF#000000##FFFFFF
##21125D1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001F5C
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #21125d;
/* rgb */ color: rgb(33, 18, 93);
/* oklch */ color: oklch(26.3% 0.124 282.9);
Tailwind
colors: {
  custom: {
    50: '#65528c',
    500: '#21125d',
    950: '#000000',
  },
}
SCSS
$custom: #21125d;
$custom-light: #65528c;
$custom-dark: #000000;
JSON
{
  "hex": "#21125d",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 252,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.2625,
    "c": 0.12394,
    "h": 282.9
  },
  "luminance": 0.01546
}

Semantic roles & 50–950 ramp

primary
#21125D
secondary
#829535
accent
#EA3DC8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21125D

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

Preview Lab → · Contrast checker → · Palette generator →

#21125D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva