#180D2F#180D2F

#180D2F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.7% C 0.065 H 294.6°. Best body text is #FFFFFF at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#180D2F
RGBrgb(24, 13, 47)
HSLhsl(259, 57%, 12%)
HSVhsv(259, 72%, 18%)
CMYKcmyk(48.9%, 72.3%, 0%, 81.6%)
CIE-LABlab(6.21, 15.05, -20.51)
CIE-LCHlch(6.21, 25.44, 306.27°)
OKLaboklab(19.68% 0.0271 -0.0591)
OKLCHoklch(19.68% 0.065 294.6)
XYZxyz(1.0336, 0.6873, 2.7670)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D2F #242F0D
analogous
#0D132F #180D2F #290D2F
triadic
#180D2F #2F180D #0D2F18
tetradic
#180D2F #2F0D13 #242F0D #0D2F29
square
#180D2F #2F0D13 #242F0D #0D2F29
split-complementary
#180D2F #2F290D #132F0D
monochromatic
#0C0718 #0C0718 #180D2F #301A5F #49288F

Accessibility & contrast

On white

18.46
#180D2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180D2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D2F
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D2F#FFFFFF#000000##FFFFFF
##180D2F1.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#01132E
Tritanopia (blue-blind)
#12141C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180d2f;
/* rgb */ color: rgb(24, 13, 47);
/* oklch */ color: oklch(19.7% 0.065 294.6);
Tailwind
colors: {
  custom: {
    50: '#574c68',
    500: '#180d2f',
    950: '#000000',
  },
}
SCSS
$custom: #180d2f;
$custom-light: #574c68;
$custom-dark: #000000;
JSON
{
  "hex": "#180d2f",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 47
  },
  "hsl": {
    "h": 259.412,
    "s": 56.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.19679,
    "c": 0.06505,
    "h": 294.6
  },
  "luminance": 0.00687
}

Semantic roles & 50–950 ramp

primary
#180D2F
secondary
#576A2E
accent
#E048AF
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #180D2F

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

Preview Lab → · Contrast checker → · Palette generator →

#180D2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva