#18022B#18022B

#18022B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.1% C 0.081 H 304.5°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#18022B
RGBrgb(24, 2, 43)
HSLhsl(272, 91%, 9%)
HSVhsv(272, 95%, 17%)
CMYKcmyk(44.2%, 95.3%, 0%, 83.1%)
CIE-LABlab(3.72, 18.14, -21.45)
CIE-LCHlch(3.72, 28.09, 310.22°)
OKLaboklab(17.09% 0.0459 -0.0667)
OKLCHoklch(17.09% 0.081 304.5)
XYZxyz(0.8343, 0.4120, 2.3206)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18022B #152B02
analogous
#04022B #18022B #2B022A
triadic
#18022B #2B1802 #022B18
tetradic
#18022B #2B0402 #152B02 #022A2B
square
#18022B #2B0402 #152B02 #022A2B
split-complementary
#18022B #2A2B02 #022B04
monochromatic
#10011D #10011D #18022B #390565 #5907A0

Accessibility & contrast

On white

19.40
#18022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18022B
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18022B#FFFFFF#000000##FFFFFF
##18022B1.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2C
Deuteranopia (green-blind)
#000D2A
Tritanopia (blue-blind)
#140B16
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #18022b;
/* rgb */ color: rgb(24, 2, 43);
/* oklch */ color: oklch(17.1% 0.081 304.5);
Tailwind
colors: {
  custom: {
    50: '#554764',
    500: '#18022b',
    950: '#000000',
  },
}
SCSS
$custom: #18022b;
$custom-light: #554764;
$custom-dark: #000000;
JSON
{
  "hex": "#18022b",
  "rgb": {
    "r": 24,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 272.195,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.17093,
    "c": 0.08099,
    "h": 304.5
  },
  "luminance": 0.00412
}

Semantic roles & 50–950 ramp

primary
#18022B
secondary
#417019
accent
#FF298C
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #18022B

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

Preview Lab → · Contrast checker → · Palette generator →

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