#18082F#18082F

#18082F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.7% C 0.074 H 297.7°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#18082F
RGBrgb(24, 8, 47)
HSLhsl(265, 71%, 11%)
HSVhsv(265, 83%, 18%)
CMYKcmyk(48.9%, 83%, 0%, 81.6%)
CIE-LABlab(5.18, 17.42, -22.15)
CIE-LCHlch(5.18, 28.18, 308.18°)
OKLaboklab(18.74% 0.0343 -0.0653)
OKLCHoklch(18.74% 0.074 297.7)
XYZxyz(0.9765, 0.5731, 2.7479)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18082F #1F2F08
analogous
#080B2F #18082F #2B082F
triadic
#18082F #2F1808 #082F18
tetradic
#18082F #2F080B #1F2F08 #082F2B
square
#18082F #2F080B #1F2F08 #082F2B
split-complementary
#18082F #2F2B08 #0B2F08
monochromatic
#0D041A #0D041A #18082F #331163 #4D1A98

Accessibility & contrast

On white

18.84
#18082F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18082F
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18082F#FFFFFF#000000##FFFFFF
##18082F1.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#12111A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #18082f;
/* rgb */ color: rgb(24, 8, 47);
/* oklch */ color: oklch(18.7% 0.074 297.7);
Tailwind
colors: {
  custom: {
    50: '#574968',
    500: '#18082f',
    950: '#000000',
  },
}
SCSS
$custom: #18082f;
$custom-light: #574968;
$custom-dark: #000000;
JSON
{
  "hex": "#18082f",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 47
  },
  "hsl": {
    "h": 264.615,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18742,
    "c": 0.07376,
    "h": 297.7
  },
  "luminance": 0.00573
}

Semantic roles & 50–950 ramp

primary
#18082F
secondary
#506E25
accent
#EE3AA4
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #18082F

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

Preview Lab → · Contrast checker → · Palette generator →

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