#21145F#21145F

#21145F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 26.8% C 0.124 H 281.9°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#21145F
RGBrgb(33, 20, 95)
HSLhsl(250, 65%, 23%)
HSVhsv(250, 79%, 37%)
CMYKcmyk(65.3%, 78.9%, 0%, 62.7%)
CIE-LABlab(13.53, 29.71, -42.20)
CIE-LCHlch(13.53, 51.61, 305.15°)
OKLaboklab(26.76% 0.0256 -0.1217)
OKLCHoklch(26.76% 0.124 281.9)
XYZxyz(2.9423, 1.6497, 10.9876)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21145F #525F14
analogous
#142D5F #21145F #46145F
triadic
#21145F #5F2114 #145F21
tetradic
#21145F #5F142D #525F14 #145F46
square
#21145F #5F142D #525F14 #145F46
split-complementary
#21145F #5F4614 #2D5F14
monochromatic
#090519 #0F092C #21145F #331F92 #4429C4

Accessibility & contrast

On white

15.79
#21145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#21145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21145F
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21145F#FFFFFF#000000##FFFFFF
##21145F1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #21145f;
/* rgb */ color: rgb(33, 20, 95);
/* oklch */ color: oklch(26.8% 0.124 281.9);
Tailwind
colors: {
  custom: {
    50: '#65538d',
    500: '#21145f',
    950: '#000000',
  },
}
SCSS
$custom: #21145f;
$custom-light: #65538d;
$custom-dark: #000000;
JSON
{
  "hex": "#21145f",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 250.4,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26761,
    "c": 0.12436,
    "h": 281.9
  },
  "luminance": 0.0165
}

Semantic roles & 50–950 ramp

primary
#21145F
secondary
#869738
accent
#E840CB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21145F

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

Preview Lab → · Contrast checker → · Palette generator →

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