#21145C#21145C

#21145C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.4% C 0.120 H 282.7°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#21145C
RGBrgb(33, 20, 92)
HSLhsl(251, 64%, 22%)
HSVhsv(251, 78%, 36%)
CMYKcmyk(64.1%, 78.3%, 0%, 63.9%)
CIE-LABlab(13.21, 28.69, -40.72)
CIE-LCHlch(13.21, 49.81, 305.16°)
OKLaboklab(26.44% 0.0264 -0.1174)
OKLCHoklch(26.44% 0.12 282.7)
XYZxyz(2.8085, 1.5962, 10.2832)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21145C #4F5C14
analogous
#142B5C #21145C #45145C
triadic
#21145C #5C2114 #145C21
tetradic
#21145C #5C142B #4F5C14 #145C45
square
#21145C #5C142B #4F5C14 #145C45
split-complementary
#21145C #5C4514 #2B5C14
monochromatic
#090519 #0F092A #21145C #331F8E #452AC1

Accessibility & contrast

On white

15.92
#21145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#21145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21145C
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21145C#FFFFFF#000000##FFFFFF
##21145C1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #21145c;
/* rgb */ color: rgb(33, 20, 92);
/* oklch */ color: oklch(26.4% 0.120 282.7);
Tailwind
colors: {
  custom: {
    50: '#65538b',
    500: '#21145c',
    950: '#000000',
  },
}
SCSS
$custom: #21145c;
$custom-light: #65538b;
$custom-dark: #000000;
JSON
{
  "hex": "#21145c",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 250.833,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26435,
    "c": 0.1203,
    "h": 282.7
  },
  "luminance": 0.01596
}

Semantic roles & 50–950 ramp

primary
#21145C
secondary
#839438
accent
#E741C9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21145C

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

Preview Lab → · Contrast checker → · Palette generator →

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