#18022D#18022D

#18022D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.3% C 0.083 H 302.7°. Best body text is #FFFFFF at 19.35:1 contrast (WCAG AA passes).

Color values

HEX#18022D
RGBrgb(24, 2, 45)
HSLhsl(271, 91%, 9%)
HSVhsv(271, 96%, 18%)
CMYKcmyk(46.7%, 95.6%, 0%, 82.4%)
CIE-LABlab(3.86, 19.07, -22.75)
CIE-LCHlch(3.86, 29.69, 309.98°)
OKLaboklab(17.32% 0.045 -0.0701)
OKLCHoklch(17.32% 0.083 302.7)
XYZxyz(0.8719, 0.4271, 2.5186)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18022D #172D02
analogous
#03022D #18022D #2D022D
triadic
#18022D #2D1802 #022D18
tetradic
#18022D #2D0302 #172D02 #022D2D
square
#18022D #2D0302 #172D02 #022D2D
split-complementary
#18022D #2D2D02 #022D03
monochromatic
#10011D #10011D #18022D #370568 #5707A2

Accessibility & contrast

On white

19.35
#18022D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18022D
19.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18022D#FFFFFF#000000##FFFFFF
##18022D1.0019.351.0919.35
#FFFFFF19.351.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2E
Deuteranopia (green-blind)
#000E2C
Tritanopia (blue-blind)
#130C17
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #18022d;
/* rgb */ color: rgb(24, 2, 45);
/* oklch */ color: oklch(17.3% 0.083 302.7);
Tailwind
colors: {
  custom: {
    50: '#564766',
    500: '#18022d',
    950: '#000000',
  },
}
SCSS
$custom: #18022d;
$custom-light: #564766;
$custom-dark: #000000;
JSON
{
  "hex": "#18022d",
  "rgb": {
    "r": 24,
    "g": 2,
    "b": 45
  },
  "hsl": {
    "h": 270.698,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17316,
    "c": 0.08333,
    "h": 302.7
  },
  "luminance": 0.00427
}

Semantic roles & 50–950 ramp

primary
#18022D
secondary
#447219
accent
#FF2991
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #18022D

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

Preview Lab → · Contrast checker → · Palette generator →

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