#18022F#18022F

#18022F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.5% C 0.086 H 301.0°. Best body text is #FFFFFF at 19.29:1 contrast (WCAG AA passes).

Color values

HEX#18022F
RGBrgb(24, 2, 47)
HSLhsl(269, 92%, 10%)
HSVhsv(269, 96%, 18%)
CMYKcmyk(48.9%, 95.7%, 0%, 81.6%)
CIE-LABlab(4.00, 20.02, -24.03)
CIE-LCHlch(4.00, 31.27, 309.80°)
OKLaboklab(17.54% 0.0442 -0.0734)
OKLCHoklch(17.54% 0.086 301)
XYZxyz(0.9114, 0.4428, 2.7262)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18022F #192F02
analogous
#02032F #18022F #2F022F
triadic
#18022F #2F1802 #022F18
tetradic
#18022F #2F0203 #192F02 #022F2F
square
#18022F #2F0203 #192F02 #022F2F
split-complementary
#18022F #2F2F02 #032F02
monochromatic
#0F011D #0F011D #18022F #36046A #5407A4

Accessibility & contrast

On white

19.29
#18022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18022F
19.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18022F#FFFFFF#000000##FFFFFF
##18022F1.0019.291.0919.29
#FFFFFF19.291.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#000E2E
Tritanopia (blue-blind)
#130D18
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #18022f;
/* rgb */ color: rgb(24, 2, 47);
/* oklch */ color: oklch(17.5% 0.086 301.0);
Tailwind
colors: {
  custom: {
    50: '#564768',
    500: '#18022f',
    950: '#000000',
  },
}
SCSS
$custom: #18022f;
$custom-light: #564768;
$custom-dark: #000000;
JSON
{
  "hex": "#18022f",
  "rgb": {
    "r": 24,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 269.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17543,
    "c": 0.08567,
    "h": 301
  },
  "luminance": 0.00443
}

Semantic roles & 50–950 ramp

primary
#18022F
secondary
#477419
accent
#FF2996
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #18022F

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

Preview Lab → · Contrast checker → · Palette generator →

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