#21126C#21126C

#21126C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.143 H 279.3°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#21126C
RGBrgb(33, 18, 108)
HSLhsl(250, 71%, 25%)
HSVhsv(250, 83%, 42%)
CMYKcmyk(69.4%, 83.3%, 0%, 57.6%)
CIE-LABlab(14.62, 35.16, -49.00)
CIE-LCHlch(14.62, 60.31, 305.66°)
OKLaboklab(27.96% 0.0232 -0.1415)
OKLCHoklch(27.96% 0.143 279.3)
XYZxyz(3.5494, 1.8384, 14.3522)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21126C #5D6C12
analogous
#12306C #21126C #4E126C
triadic
#21126C #6C2112 #126C21
tetradic
#21126C #6C1230 #5D6C12 #126C4E
square
#21126C #6C1230 #5D6C12 #126C4E
split-complementary
#21126C #6C4E12 #306C12
monochromatic
#08041A #110938 #21126C #311BA0 #4123D5

Accessibility & contrast

On white

15.35
#21126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#21126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21126C
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21126C#FFFFFF#000000##FFFFFF
##21126C1.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286E
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #21126c;
/* rgb */ color: rgb(33, 18, 108);
/* oklch */ color: oklch(28.0% 0.143 279.3);
Tailwind
colors: {
  custom: {
    50: '#695397',
    500: '#21126c',
    950: '#000000',
  },
}
SCSS
$custom: #21126c;
$custom-light: #695397;
$custom-dark: #000000;
JSON
{
  "hex": "#21126c",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 250,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27962,
    "c": 0.14339,
    "h": 279.3
  },
  "luminance": 0.01839
}

Semantic roles & 50–950 ramp

primary
#21126C
secondary
#91A336
accent
#EE3AD0
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #21126C

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

Preview Lab → · Contrast checker → · Palette generator →

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