#18082D#18082D

#18082D is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.5% C 0.071 H 299.3°. Best body text is #FFFFFF at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#18082D
RGBrgb(24, 8, 45)
HSLhsl(266, 70%, 10%)
HSVhsv(266, 82%, 18%)
CMYKcmyk(46.7%, 82.2%, 0%, 82.4%)
CIE-LABlab(5.03, 16.55, -20.88)
CIE-LCHlch(5.03, 26.65, 308.40°)
OKLaboklab(18.54% 0.0347 -0.0618)
OKLCHoklch(18.54% 0.071 299.3)
XYZxyz(0.9371, 0.5573, 2.5403)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18082D #1D2D08
analogous
#080A2D #18082D #2A082D
triadic
#18082D #2D1808 #082D18
tetradic
#18082D #2D080A #1D2D08 #082D2A
square
#18082D #2D080A #1D2D08 #082D2A
split-complementary
#18082D #2D2A08 #0A2D08
monochromatic
#0E051A #0E051A #18082D #341161 #4F1A95

Accessibility & contrast

On white

18.90
#18082D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#18082D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18082D
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18082D#FFFFFF#000000##FFFFFF
##18082D1.0018.901.1118.90
#FFFFFF18.901.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112E
Deuteranopia (green-blind)
#00112C
Tritanopia (blue-blind)
#131119
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #18082d;
/* rgb */ color: rgb(24, 8, 45);
/* oklch */ color: oklch(18.5% 0.071 299.3);
Tailwind
colors: {
  custom: {
    50: '#564a66',
    500: '#18082d',
    950: '#000000',
  },
}
SCSS
$custom: #18082d;
$custom-light: #564a66;
$custom-dark: #000000;
JSON
{
  "hex": "#18082d",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 45
  },
  "hsl": {
    "h": 265.946,
    "s": 69.811,
    "l": 10.392
  },
  "oklch": {
    "l": 0.18544,
    "c": 0.07087,
    "h": 299.3
  },
  "luminance": 0.00557
}

Semantic roles & 50–950 ramp

primary
#18082D
secondary
#4D6C25
accent
#ED3BA0
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #18082D

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

Preview Lab → · Contrast checker → · Palette generator →

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