#18042D#18042D

#18042D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.7% C 0.079 H 301.6°. Best body text is #FFFFFF at 19.20:1 contrast (WCAG AA passes).

Color values

HEX#18042D
RGBrgb(24, 4, 45)
HSLhsl(269, 84%, 10%)
HSVhsv(269, 91%, 18%)
CMYKcmyk(46.7%, 91.1%, 0%, 82.4%)
CIE-LABlab(4.25, 18.24, -22.13)
CIE-LCHlch(4.25, 28.68, 309.51°)
OKLaboklab(17.74% 0.0413 -0.0672)
OKLCHoklch(17.74% 0.079 301.6)
XYZxyz(0.8936, 0.4705, 2.5258)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18042D #192D04
analogous
#04052D #18042D #2D042D
triadic
#18042D #2D1804 #042D18
tetradic
#18042D #2D0405 #192D04 #042D2D
square
#18042D #2D0405 #192D04 #042D2D
split-complementary
#18042D #2D2D04 #052D04
monochromatic
#0F021C #0F021C #18042D #360965 #540E9D

Accessibility & contrast

On white

19.20
#18042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18042D
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18042D#FFFFFF#000000##FFFFFF
##18042D1.0019.201.0919.20
#FFFFFF19.201.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#000F2C
Tritanopia (blue-blind)
#130E18
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #18042d;
/* rgb */ color: rgb(24, 4, 45);
/* oklch */ color: oklch(17.7% 0.079 301.6);
Tailwind
colors: {
  custom: {
    50: '#564866',
    500: '#18042d',
    950: '#000000',
  },
}
SCSS
$custom: #18042d;
$custom-light: #564866;
$custom-dark: #000000;
JSON
{
  "hex": "#18042d",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 269.268,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17744,
    "c": 0.07887,
    "h": 301.6
  },
  "luminance": 0.0047
}

Semantic roles & 50–950 ramp

primary
#18042D
secondary
#47701D
accent
#FA2E96
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #18042D

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

Preview Lab → · Contrast checker → · Palette generator →

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