#21126A#21126A

#21126A is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.141 H 279.7°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#21126A
RGBrgb(33, 18, 106)
HSLhsl(250, 71%, 24%)
HSVhsv(250, 83%, 42%)
CMYKcmyk(68.9%, 83%, 0%, 58.4%)
CIE-LABlab(14.38, 34.51, -48.08)
CIE-LCHlch(14.38, 59.18, 305.67°)
OKLaboklab(27.73% 0.0238 -0.1388)
OKLCHoklch(27.73% 0.141 279.7)
XYZxyz(3.4442, 1.7963, 13.7981)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21126A #5B6A12
analogous
#122F6A #21126A #4D126A
triadic
#21126A #6A2112 #126A21
tetradic
#21126A #6A122F #5B6A12 #126A4D
square
#21126A #6A122F #5B6A12 #126A4D
split-complementary
#21126A #6A4D12 #2F6A12
monochromatic
#08041A #110936 #21126A #311B9E #4224D3

Accessibility & contrast

On white

15.45
#21126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#21126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21126A
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21126A#FFFFFF#000000##FFFFFF
##21126A1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002168
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21126a;
/* rgb */ color: rgb(33, 18, 106);
/* oklch */ color: oklch(27.7% 0.141 279.7);
Tailwind
colors: {
  custom: {
    50: '#685396',
    500: '#21126a',
    950: '#000000',
  },
}
SCSS
$custom: #21126a;
$custom-light: #685396;
$custom-dark: #000000;
JSON
{
  "hex": "#21126a",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 250.227,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27729,
    "c": 0.14084,
    "h": 279.7
  },
  "luminance": 0.01797
}

Semantic roles & 50–950 ramp

primary
#21126A
secondary
#8FA236
accent
#EE3ACF
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #21126A

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

Preview Lab → · Contrast checker → · Palette generator →

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