#15022D#15022D

#15022D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.8% C 0.083 H 298.4°. Best body text is #FFFFFF at 19.47:1 contrast (WCAG AA passes).

Color values

HEX#15022D
RGBrgb(21, 2, 45)
HSLhsl(267, 91%, 9%)
HSVhsv(267, 96%, 18%)
CMYKcmyk(53.3%, 95.6%, 0%, 82.4%)
CIE-LABlab(3.54, 17.68, -23.27)
CIE-LCHlch(3.54, 29.22, 307.23°)
OKLaboklab(16.84% 0.0393 -0.0728)
OKLCHoklch(16.84% 0.083 298.4)
XYZxyz(0.8045, 0.3923, 2.5154)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15022D #1A2D02
analogous
#02042D #15022D #2B022D
triadic
#15022D #2D1502 #022D15
tetradic
#15022D #2D0204 #1A2D02 #022D2B
square
#15022D #2D0204 #1A2D02 #022D2B
split-complementary
#15022D #2D2B02 #042D02
monochromatic
#0E011D #0E011D #15022D #300568 #4C07A2

Accessibility & contrast

On white

19.47
#15022D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#15022D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15022D
19.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15022D#FFFFFF#000000##FFFFFF
##15022D1.0019.471.0819.47
#FFFFFF19.471.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2E
Deuteranopia (green-blind)
#000C2C
Tritanopia (blue-blind)
#0F0D17
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #15022d;
/* rgb */ color: rgb(21, 2, 45);
/* oklch */ color: oklch(16.8% 0.083 298.4);
Tailwind
colors: {
  custom: {
    50: '#534766',
    500: '#15022d',
    950: '#000000',
  },
}
SCSS
$custom: #15022d;
$custom-light: #534766;
$custom-dark: #000000;
JSON
{
  "hex": "#15022d",
  "rgb": {
    "r": 21,
    "g": 2,
    "b": 45
  },
  "hsl": {
    "h": 266.512,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.16843,
    "c": 0.08276,
    "h": 298.4
  },
  "luminance": 0.00392
}

Semantic roles & 50–950 ramp

primary
#15022D
secondary
#4B7219
accent
#FF29A0
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #15022D

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

Preview Lab → · Contrast checker → · Palette generator →

#15022D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva