#15012C#15012C

#15012C is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.5% C 0.084 H 299.8°. Best body text is #FFFFFF at 19.58:1 contrast (WCAG AA passes).

Color values

HEX#15012C
RGBrgb(21, 1, 44)
HSLhsl(268, 96%, 9%)
HSVhsv(268, 98%, 17%)
CMYKcmyk(52.3%, 97.7%, 0%, 82.7%)
CIE-LABlab(3.28, 17.60, -22.93)
CIE-LCHlch(3.28, 28.90, 307.51°)
OKLaboklab(16.49% 0.0418 -0.0728)
OKLCHoklch(16.49% 0.084 299.8)
XYZxyz(0.7746, 0.3630, 2.4116)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15012C #182C01
analogous
#01032C #15012C #2B012C
triadic
#15012C #2C1501 #012C15
tetradic
#15012C #2C0103 #182C01 #012C2B
square
#15012C #2C0103 #182C01 #012C2B
split-complementary
#15012C #2C2B01 #032C01
monochromatic
#0E011E #0E011E #15012C #320268 #4E04A4

Accessibility & contrast

On white

19.58
#15012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15012C
19.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15012C#FFFFFF#000000##FFFFFF
##15012C1.0019.581.0719.58
#FFFFFF19.581.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #15012c;
/* rgb */ color: rgb(21, 1, 44);
/* oklch */ color: oklch(16.5% 0.084 299.8);
Tailwind
colors: {
  custom: {
    50: '#534665',
    500: '#15012c',
    950: '#000000',
  },
}
SCSS
$custom: #15012c;
$custom-light: #534665;
$custom-dark: #000000;
JSON
{
  "hex": "#15012c",
  "rgb": {
    "r": 21,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 267.907,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.16486,
    "c": 0.08395,
    "h": 299.8
  },
  "luminance": 0.00363
}

Semantic roles & 50–950 ramp

primary
#15012C
secondary
#487217
accent
#FF299B
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#030005
muted
#78777A

Preview Lab

Preview with #15012C

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

Preview Lab → · Contrast checker → · Palette generator →

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