#18022C#18022C

#18022C is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.2% C 0.082 H 303.6°. Best body text is #FFFFFF at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#18022C
RGBrgb(24, 2, 44)
HSLhsl(271, 91%, 9%)
HSVhsv(271, 95%, 17%)
CMYKcmyk(45.5%, 95.5%, 0%, 82.7%)
CIE-LABlab(3.79, 18.60, -22.10)
CIE-LCHlch(3.79, 28.89, 310.09°)
OKLaboklab(17.2% 0.0455 -0.0684)
OKLCHoklch(17.2% 0.082 303.6)
XYZxyz(0.8529, 0.4195, 2.4184)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18022C #162C02
analogous
#03022C #18022C #2C022B
triadic
#18022C #2C1802 #022C18
tetradic
#18022C #2C0302 #162C02 #022B2C
square
#18022C #2C0302 #162C02 #022B2C
split-complementary
#18022C #2B2C02 #022C03
monochromatic
#10011D #10011D #18022C #380567 #5807A1

Accessibility & contrast

On white

19.38
#18022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#18022C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18022C
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18022C#FFFFFF#000000##FFFFFF
##18022C1.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#000D2B
Tritanopia (blue-blind)
#140C16
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #18022c;
/* rgb */ color: rgb(24, 2, 44);
/* oklch */ color: oklch(17.2% 0.082 303.6);
Tailwind
colors: {
  custom: {
    50: '#564765',
    500: '#18022c',
    950: '#000000',
  },
}
SCSS
$custom: #18022c;
$custom-light: #564765;
$custom-dark: #000000;
JSON
{
  "hex": "#18022c",
  "rgb": {
    "r": 24,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 271.429,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17204,
    "c": 0.08217,
    "h": 303.6
  },
  "luminance": 0.00419
}

Semantic roles & 50–950 ramp

primary
#18022C
secondary
#437119
accent
#FF298F
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030005
muted
#78777A

Preview Lab

Preview with #18022C

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

Preview Lab → · Contrast checker → · Palette generator →

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