#180418#180418

#180418 is a very dark, muted purple. Relative luminance 0.003; OKLCH L 15.8% C 0.052 H 327.7°. Best body text is #FFFFFF at 19.64:1 contrast (WCAG AA passes).

Color values

HEX#180418
RGBrgb(24, 4, 24)
HSLhsl(300, 71%, 5%)
HSVhsv(300, 83%, 9%)
CMYKcmyk(0%, 83.3%, 0%, 90.6%)
CIE-LABlab(3.13, 10.45, -7.47)
CIE-LCHlch(3.13, 12.85, 324.45°)
OKLaboklab(15.82% 0.0444 -0.028)
OKLCHoklch(15.82% 0.052 327.7)
XYZxyz(0.5850, 0.3470, 0.9001)
Luminance0.0035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180418 #041804
analogous
#0E0418 #180418 #18040E
triadic
#180418 #181804 #041818
tetradic
#180418 #180E04 #041804 #040E18
square
#180418 #180E04 #041804 #040E18
split-complementary
#180418 #0E1804 #04180E
monochromatic
#1A041A #1A041A #1A041A #4C0D4C #811581

Accessibility & contrast

On white

19.64
#180418 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#180418 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180418
19.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180418#FFFFFF#000000##FFFFFF
##1804181.0019.641.0719.64
#FFFFFF19.641.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#030A19
Deuteranopia (green-blind)
#080C17
Tritanopia (blue-blind)
#19060C
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #180418;
/* rgb */ color: rgb(24, 4, 24);
/* oklch */ color: oklch(15.8% 0.052 327.7);
Tailwind
colors: {
  custom: {
    50: '#544854',
    500: '#180418',
    950: '#000000',
  },
}
SCSS
$custom: #180418;
$custom-light: #544854;
$custom-dark: #000000;
JSON
{
  "hex": "#180418",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 24
  },
  "hsl": {
    "h": 300,
    "s": 71.429,
    "l": 5.49
  },
  "oklch": {
    "l": 0.15816,
    "c": 0.05249,
    "h": 327.7
  },
  "luminance": 0.00347
}

Semantic roles & 50–950 ramp

primary
#180418
secondary
#1E5A1E
accent
#EE3A3A
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#020002
muted
#787778

Preview Lab

Preview with #180418

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

Preview Lab → · Contrast checker → · Palette generator →

#180418 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva