#180218#180218

#180218 is a very dark, muted purple. Relative luminance 0.003; OKLCH L 15.3% C 0.059 H 328.0°. Best body text is #FFFFFF at 19.80:1 contrast (WCAG AA passes).

Color values

HEX#180218
RGBrgb(24, 2, 24)
HSLhsl(300, 85%, 5%)
HSVhsv(300, 92%, 9%)
CMYKcmyk(0%, 91.7%, 0%, 90.6%)
CIE-LABlab(2.74, 11.25, -8.04)
CIE-LCHlch(2.74, 13.83, 324.45°)
OKLaboklab(15.26% 0.0505 -0.0315)
OKLCHoklch(15.26% 0.059 328)
XYZxyz(0.5633, 0.3036, 0.8929)
Luminance0.0030 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180218 #021802
analogous
#0D0218 #180218 #18020D
triadic
#180218 #181802 #021818
tetradic
#180218 #180D02 #021802 #020D18
square
#180218 #180D02 #021802 #020D18
split-complementary
#180218 #0D1802 #02180D
monochromatic
#1C021C #1C021C #1C021C #500750 #890B89

Accessibility & contrast

On white

19.80
#180218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#180218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180218
19.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180218#FFFFFF#000000##FFFFFF
##1802181.0019.801.0619.80
#FFFFFF19.801.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010819
Deuteranopia (green-blind)
#060B17
Tritanopia (blue-blind)
#19040B
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #180218;
/* rgb */ color: rgb(24, 2, 24);
/* oklch */ color: oklch(15.3% 0.059 328.0);
Tailwind
colors: {
  custom: {
    50: '#544754',
    500: '#180218',
    950: '#000000',
  },
}
SCSS
$custom: #180218;
$custom-light: #544754;
$custom-dark: #000000;
JSON
{
  "hex": "#180218",
  "rgb": {
    "r": 24,
    "g": 2,
    "b": 24
  },
  "hsl": {
    "h": 300,
    "s": 84.615,
    "l": 5.098
  },
  "oklch": {
    "l": 0.15264,
    "c": 0.05948,
    "h": 328
  },
  "luminance": 0.00304
}

Semantic roles & 50–950 ramp

primary
#180218
secondary
#185E18
accent
#FB2D2D
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#020002
muted
#787778

Preview Lab

Preview with #180218

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

Preview Lab → · Contrast checker → · Palette generator →

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