#15012E#15012E

#15012E is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.7% C 0.086 H 298.2°. Best body text is #FFFFFF at 19.52:1 contrast (WCAG AA passes).

Color values

HEX#15012E
RGBrgb(21, 1, 46)
HSLhsl(267, 96%, 9%)
HSVhsv(267, 98%, 18%)
CMYKcmyk(54.3%, 97.8%, 0%, 82%)
CIE-LABlab(3.42, 18.57, -24.22)
CIE-LCHlch(3.42, 30.52, 307.49°)
OKLaboklab(16.73% 0.0407 -0.0761)
OKLCHoklch(16.73% 0.086 298.2)
XYZxyz(0.8131, 0.3784, 2.6144)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15012E #1A2E01
analogous
#01032E #15012E #2C012E
triadic
#15012E #2E1501 #012E15
tetradic
#15012E #2E0103 #1A2E01 #012E2C
square
#15012E #2E0103 #1A2E01 #012E2C
split-complementary
#15012E #2E2C01 #032E01
monochromatic
#0E011E #0E011E #15012E #30026A #4C04A6

Accessibility & contrast

On white

19.52
#15012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#15012E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15012E
19.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15012E#FFFFFF#000000##FFFFFF
##15012E1.0019.521.0819.52
#FFFFFF19.521.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2F
Deuteranopia (green-blind)
#000C2D
Tritanopia (blue-blind)
#0E0C17
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #15012e;
/* rgb */ color: rgb(21, 1, 46);
/* oklch */ color: oklch(16.7% 0.086 298.2);
Tailwind
colors: {
  custom: {
    50: '#544667',
    500: '#15012e',
    950: '#000000',
  },
}
SCSS
$custom: #15012e;
$custom-light: #544667;
$custom-dark: #000000;
JSON
{
  "hex": "#15012e",
  "rgb": {
    "r": 21,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 266.667,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.1673,
    "c": 0.08626,
    "h": 298.2
  },
  "luminance": 0.00378
}

Semantic roles & 50–950 ramp

primary
#15012E
secondary
#4B7417
accent
#FF29A0
background
#F4F3F6
surface
#E8E5EB
border
#C4C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #15012E

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

Preview Lab → · Contrast checker → · Palette generator →

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