#15042F#15042F

#15042F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.5% C 0.081 H 295.6°. Best body text is #FFFFFF at 19.26:1 contrast (WCAG AA passes).

Color values

HEX#15042F
RGBrgb(21, 4, 47)
HSLhsl(264, 84%, 10%)
HSVhsv(264, 91%, 18%)
CMYKcmyk(55.3%, 91.5%, 0%, 81.6%)
CIE-LABlab(4.08, 17.87, -23.92)
CIE-LCHlch(4.08, 29.86, 306.76°)
OKLaboklab(17.52% 0.035 -0.0731)
OKLCHoklch(17.52% 0.081 295.6)
XYZxyz(0.8656, 0.4515, 2.7303)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15042F #1E2F04
analogous
#04082F #15042F #2B042F
triadic
#15042F #2F1504 #042F15
tetradic
#15042F #2F0408 #1E2F04 #042F2B
square
#15042F #2F0408 #1E2F04 #042F2B
split-complementary
#15042F #2F2B04 #082F04
monochromatic
#0D021C #0D021C #15042F #2E0967 #470EA0

Accessibility & contrast

On white

19.26
#15042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15042F
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15042F#FFFFFF#000000##FFFFFF
##15042F1.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #15042f;
/* rgb */ color: rgb(21, 4, 47);
/* oklch */ color: oklch(17.5% 0.081 295.6);
Tailwind
colors: {
  custom: {
    50: '#544868',
    500: '#15042f',
    950: '#000000',
  },
}
SCSS
$custom: #15042f;
$custom-light: #544868;
$custom-dark: #000000;
JSON
{
  "hex": "#15042f",
  "rgb": {
    "r": 21,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 263.721,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.17521,
    "c": 0.081,
    "h": 295.6
  },
  "luminance": 0.00451
}

Semantic roles & 50–950 ramp

primary
#15042F
secondary
#50721D
accent
#FB2DA9
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #15042F

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

Preview Lab → · Contrast checker → · Palette generator →

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