#18082C#18082C

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

Color values

HEX#18082C
RGBrgb(24, 8, 44)
HSLhsl(267, 69%, 10%)
HSVhsv(267, 82%, 17%)
CMYKcmyk(45.5%, 81.8%, 0%, 82.7%)
CIE-LABlab(4.97, 16.11, -20.24)
CIE-LCHlch(4.97, 25.87, 308.52°)
OKLaboklab(18.45% 0.0348 -0.0601)
OKLCHoklch(18.45% 0.069 300.1)
XYZxyz(0.9180, 0.5497, 2.4401)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18082C #1C2C08
analogous
#080A2C #18082C #2A082C
triadic
#18082C #2C1808 #082C18
tetradic
#18082C #2C080A #1C2C08 #082C2A
square
#18082C #2C080A #1C2C08 #082C2A
split-complementary
#18082C #2C2A08 #0A2C08
monochromatic
#0E051A #0E051A #18082C #341160 #501B94

Accessibility & contrast

On white

18.92
#18082C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18082C
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18082C#FFFFFF#000000##FFFFFF
##18082C1.0018.921.1118.92
#FFFFFF18.921.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112D
Deuteranopia (green-blind)
#00102B
Tritanopia (blue-blind)
#141018
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #18082c;
/* rgb */ color: rgb(24, 8, 44);
/* oklch */ color: oklch(18.4% 0.069 300.1);
Tailwind
colors: {
  custom: {
    50: '#564a65',
    500: '#18082c',
    950: '#000000',
  },
}
SCSS
$custom: #18082c;
$custom-light: #564a65;
$custom-dark: #000000;
JSON
{
  "hex": "#18082c",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 44
  },
  "hsl": {
    "h": 266.667,
    "s": 69.231,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18447,
    "c": 0.06942,
    "h": 300.1
  },
  "luminance": 0.0055
}

Semantic roles & 50–950 ramp

primary
#18082C
secondary
#4C6B25
accent
#EC3C9E
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030105
muted
#78777A

Preview Lab

Preview with #18082C

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

Preview Lab → · Contrast checker → · Palette generator →

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