#21145B#21145B

#21145B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.119 H 282.9°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#21145B
RGBrgb(33, 20, 91)
HSLhsl(251, 64%, 22%)
HSVhsv(251, 78%, 36%)
CMYKcmyk(63.7%, 78%, 0%, 64.3%)
CIE-LABlab(13.10, 28.34, -40.23)
CIE-LCHlch(13.10, 49.21, 305.17°)
OKLaboklab(26.33% 0.0266 -0.1159)
OKLCHoklch(26.33% 0.119 282.9)
XYZxyz(2.7651, 1.5788, 10.0545)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21145B #4E5B14
analogous
#142B5B #21145B #45145B
triadic
#21145B #5B2114 #145B21
tetradic
#21145B #5B142B #4E5B14 #145B45
square
#21145B #5B142B #4E5B14 #145B45
split-complementary
#21145B #5B4514 #2B5B14
monochromatic
#090619 #0F0929 #21145B #331F8D #452ABF

Accessibility & contrast

On white

15.96
#21145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21145B
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21145B#FFFFFF#000000##FFFFFF
##21145B1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21145b;
/* rgb */ color: rgb(33, 20, 91);
/* oklch */ color: oklch(26.3% 0.119 282.9);
Tailwind
colors: {
  custom: {
    50: '#65538a',
    500: '#21145b',
    950: '#000000',
  },
}
SCSS
$custom: #21145b;
$custom-light: #65538a;
$custom-dark: #000000;
JSON
{
  "hex": "#21145b",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 250.986,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26327,
    "c": 0.11893,
    "h": 282.9
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21145B

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

Preview Lab → · Contrast checker → · Palette generator →

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