#180D36#180D36

#180D36 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.076 H 290.3°. Best body text is #FFFFFF at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#180D36
RGBrgb(24, 13, 54)
HSLhsl(256, 61%, 13%)
HSVhsv(256, 76%, 21%)
CMYKcmyk(55.6%, 75.9%, 0%, 78.8%)
CIE-LABlab(6.76, 17.88, -24.78)
CIE-LCHlch(6.76, 30.56, 305.81°)
OKLaboklab(20.34% 0.0264 -0.0713)
OKLCHoklch(20.34% 0.076 290.3)
XYZxyz(1.1863, 0.7483, 3.5713)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D36 #2B360D
analogous
#0D1636 #180D36 #2C0D36
triadic
#180D36 #36180D #0D3618
tetradic
#180D36 #360D16 #2B360D #0D362C
square
#180D36 #360D16 #2B360D #0D362C
split-complementary
#180D36 #362C0D #16360D
monochromatic
#0B0619 #0B0619 #180D36 #2E1967 #442599

Accessibility & contrast

On white

18.27
#180D36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#180D36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D36
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D36#FFFFFF#000000##FFFFFF
##180D361.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001637
Deuteranopia (green-blind)
#001435
Tritanopia (blue-blind)
#0E171F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180d36;
/* rgb */ color: rgb(24, 13, 54);
/* oklch */ color: oklch(20.3% 0.076 290.3);
Tailwind
colors: {
  custom: {
    50: '#584c6d',
    500: '#180d36',
    950: '#000000',
  },
}
SCSS
$custom: #180d36;
$custom-light: #584c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#180d36",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 54
  },
  "hsl": {
    "h": 256.098,
    "s": 61.194,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20341,
    "c": 0.07602,
    "h": 290.3
  },
  "luminance": 0.00748
}

Semantic roles & 50–950 ramp

primary
#180D36
secondary
#5F712D
accent
#E443B9
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #180D36

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

Preview Lab → · Contrast checker → · Palette generator →

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