#15052A#15052A

#15052A is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.2% C 0.072 H 298.9°. Best body text is #FFFFFF at 19.32:1 contrast (WCAG AA passes).

Color values

HEX#15052A
RGBrgb(21, 5, 42)
HSLhsl(266, 79%, 9%)
HSVhsv(266, 88%, 16%)
CMYKcmyk(50%, 88.1%, 0%, 83.5%)
CIE-LABlab(3.93, 15.06, -20.38)
CIE-LCHlch(3.93, 25.34, 306.47°)
OKLaboklab(17.19% 0.0349 -0.0631)
OKLCHoklch(17.19% 0.072 298.9)
XYZxyz(0.7813, 0.4351, 2.2329)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15052A #1A2A05
analogous
#05082A #15052A #28052A
triadic
#15052A #2A1505 #052A15
tetradic
#15052A #2A0508 #1A2A05 #052A28
square
#15052A #2A0508 #1A2A05 #052A28
split-complementary
#15052A #2A2805 #082A05
monochromatic
#0E031B #0E031B #15052A #300C61 #4C1297

Accessibility & contrast

On white

19.32
#15052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#15052A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15052A
19.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15052A#FFFFFF#000000##FFFFFF
##15052A1.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)
#000E2B
Deuteranopia (green-blind)
#000E29
Tritanopia (blue-blind)
#100E16
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #15052a;
/* rgb */ color: rgb(21, 5, 42);
/* oklch */ color: oklch(17.2% 0.072 298.9);
Tailwind
colors: {
  custom: {
    50: '#534864',
    500: '#15052a',
    950: '#000000',
  },
}
SCSS
$custom: #15052a;
$custom-light: #534864;
$custom-dark: #000000;
JSON
{
  "hex": "#15052a",
  "rgb": {
    "r": 21,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 265.946,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17188,
    "c": 0.07211,
    "h": 298.9
  },
  "luminance": 0.00435
}

Semantic roles & 50–950 ramp

primary
#15052A
secondary
#4B6C1F
accent
#F533A1
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#020005
muted
#787779

Preview Lab

Preview with #15052A

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

Preview Lab → · Contrast checker → · Palette generator →

#15052A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva