#18082B#18082B

#18082B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.4% C 0.068 H 301.0°. Best body text is #FFFFFF at 18.95:1 contrast (WCAG AA passes).

Color values

HEX#18082B
RGBrgb(24, 8, 43)
HSLhsl(267, 69%, 10%)
HSVhsv(267, 81%, 17%)
CMYKcmyk(44.2%, 81.4%, 0%, 83.1%)
CIE-LABlab(4.90, 15.68, -19.59)
CIE-LCHlch(4.90, 25.09, 308.67°)
OKLaboklab(18.35% 0.035 -0.0583)
OKLCHoklch(18.35% 0.068 301)
XYZxyz(0.8995, 0.5423, 2.3423)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18082B #1B2B08
analogous
#08092B #18082B #2A082B
triadic
#18082B #2B1808 #082B18
tetradic
#18082B #2B0809 #1B2B08 #082B2A
square
#18082B #2B0809 #1B2B08 #082B2A
split-complementary
#18082B #2B2A08 #092B08
monochromatic
#0E051A #0E051A #18082B #35125F #521B92

Accessibility & contrast

On white

18.95
#18082B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18082B
18.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18082B#FFFFFF#000000##FFFFFF
##18082B1.0018.951.1118.95
#FFFFFF18.951.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#00102A
Tritanopia (blue-blind)
#141018
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #18082b;
/* rgb */ color: rgb(24, 8, 43);
/* oklch */ color: oklch(18.4% 0.068 301.0);
Tailwind
colors: {
  custom: {
    50: '#564a64',
    500: '#18082b',
    950: '#000000',
  },
}
SCSS
$custom: #18082b;
$custom-light: #564a64;
$custom-dark: #000000;
JSON
{
  "hex": "#18082b",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 43
  },
  "hsl": {
    "h": 267.429,
    "s": 68.627,
    "l": 10
  },
  "oklch": {
    "l": 0.18351,
    "c": 0.06798,
    "h": 301
  },
  "luminance": 0.00542
}

Semantic roles & 50–950 ramp

primary
#18082B
secondary
#4A6A25
accent
#EB3C9B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030105
muted
#78777A

Preview Lab

Preview with #18082B

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

Preview Lab → · Contrast checker → · Palette generator →

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