#15022F#15022F

#15022F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.1% C 0.085 H 296.8°. Best body text is #FFFFFF at 19.42:1 contrast (WCAG AA passes).

Color values

HEX#15022F
RGBrgb(21, 2, 47)
HSLhsl(265, 92%, 10%)
HSVhsv(265, 96%, 18%)
CMYKcmyk(55.3%, 95.7%, 0%, 81.6%)
CIE-LABlab(3.69, 18.68, -24.55)
CIE-LCHlch(3.69, 30.85, 307.27°)
OKLaboklab(17.08% 0.0384 -0.0761)
OKLCHoklch(17.08% 0.085 296.8)
XYZxyz(0.8439, 0.4081, 2.7231)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15022F #1C2F02
analogous
#02062F #15022F #2C022F
triadic
#15022F #2F1502 #022F15
tetradic
#15022F #2F0206 #1C2F02 #022F2C
square
#15022F #2F0206 #1C2F02 #022F2C
split-complementary
#15022F #2F2C02 #062F02
monochromatic
#0D011D #0D011D #15022F #2F046A #4907A4

Accessibility & contrast

On white

19.42
#15022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#15022F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15022F
19.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15022F#FFFFFF#000000##FFFFFF
##15022F1.0019.421.0819.42
#FFFFFF19.421.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D30
Deuteranopia (green-blind)
#000D2E
Tritanopia (blue-blind)
#0E0D18
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #15022f;
/* rgb */ color: rgb(21, 2, 47);
/* oklch */ color: oklch(17.1% 0.085 296.8);
Tailwind
colors: {
  custom: {
    50: '#544768',
    500: '#15022f',
    950: '#000000',
  },
}
SCSS
$custom: #15022f;
$custom-light: #544768;
$custom-dark: #000000;
JSON
{
  "hex": "#15022f",
  "rgb": {
    "r": 21,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 265.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17082,
    "c": 0.0852,
    "h": 296.8
  },
  "luminance": 0.00408
}

Semantic roles & 50–950 ramp

primary
#15022F
secondary
#4D7419
accent
#FF29A5
background
#F5F3F6
surface
#E8E5EB
border
#C4C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #15022F

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

Preview Lab → · Contrast checker → · Palette generator →

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