#15012D#15012D

#15012D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.6% C 0.085 H 299.0°. Best body text is #FFFFFF at 19.55:1 contrast (WCAG AA passes).

Color values

HEX#15012D
RGBrgb(21, 1, 45)
HSLhsl(267, 96%, 9%)
HSVhsv(267, 98%, 18%)
CMYKcmyk(53.3%, 97.8%, 0%, 82.4%)
CIE-LABlab(3.35, 18.08, -23.58)
CIE-LCHlch(3.35, 29.71, 307.48°)
OKLaboklab(16.61% 0.0412 -0.0744)
OKLCHoklch(16.61% 0.085 299)
XYZxyz(0.7936, 0.3706, 2.5118)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15012D #192D01
analogous
#01032D #15012D #2B012D
triadic
#15012D #2D1501 #012D15
tetradic
#15012D #2D0103 #192D01 #012D2B
square
#15012D #2D0103 #192D01 #012D2B
split-complementary
#15012D #2D2B01 #032D01
monochromatic
#0E011E #0E011E #15012D #310269 #4D04A5

Accessibility & contrast

On white

19.55
#15012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#15012D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15012D
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15012D#FFFFFF#000000##FFFFFF
##15012D1.0019.551.0719.55
#FFFFFF19.551.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2E
Deuteranopia (green-blind)
#000C2C
Tritanopia (blue-blind)
#0F0C16
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #15012d;
/* rgb */ color: rgb(21, 1, 45);
/* oklch */ color: oklch(16.6% 0.085 299.0);
Tailwind
colors: {
  custom: {
    50: '#534666',
    500: '#15012d',
    950: '#000000',
  },
}
SCSS
$custom: #15012d;
$custom-light: #534666;
$custom-dark: #000000;
JSON
{
  "hex": "#15012d",
  "rgb": {
    "r": 21,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 267.273,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.16608,
    "c": 0.0851,
    "h": 299
  },
  "luminance": 0.00371
}

Semantic roles & 50–950 ramp

primary
#15012D
secondary
#497317
accent
#FF299E
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #15012D

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

Preview Lab → · Contrast checker → · Palette generator →

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