#15042D#15042D

#15042D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.3% C 0.078 H 297.1°. Best body text is #FFFFFF at 19.32:1 contrast (WCAG AA passes).

Color values

HEX#15042D
RGBrgb(21, 4, 45)
HSLhsl(265, 84%, 10%)
HSVhsv(265, 91%, 18%)
CMYKcmyk(53.3%, 91.1%, 0%, 82.4%)
CIE-LABlab(3.94, 16.88, -22.64)
CIE-LCHlch(3.94, 28.24, 306.70°)
OKLaboklab(17.29% 0.0357 -0.0697)
OKLCHoklch(17.29% 0.078 297.1)
XYZxyz(0.8262, 0.4357, 2.5227)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15042D #1C2D04
analogous
#04082D #15042D #2A042D
triadic
#15042D #2D1504 #042D15
tetradic
#15042D #2D0408 #1C2D04 #042D2A
square
#15042D #2D0408 #1C2D04 #042D2A
split-complementary
#15042D #2D2A04 #082D04
monochromatic
#0D021C #0D021C #15042D #2F0965 #490E9D

Accessibility & contrast

On white

19.32
#15042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#15042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15042D
19.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15042D#FFFFFF#000000##FFFFFF
##15042D1.0019.321.0919.32
#FFFFFF19.321.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000D2C
Tritanopia (blue-blind)
#0F0E18
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #15042d;
/* rgb */ color: rgb(21, 4, 45);
/* oklch */ color: oklch(17.3% 0.078 297.1);
Tailwind
colors: {
  custom: {
    50: '#544866',
    500: '#15042d',
    950: '#000000',
  },
}
SCSS
$custom: #15042d;
$custom-light: #544866;
$custom-dark: #000000;
JSON
{
  "hex": "#15042d",
  "rgb": {
    "r": 21,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 264.878,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17294,
    "c": 0.07834,
    "h": 297.1
  },
  "luminance": 0.00436
}

Semantic roles & 50–950 ramp

primary
#15042D
secondary
#4D701D
accent
#FA2EA5
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #15042D

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

Preview Lab → · Contrast checker → · Palette generator →

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