#180D4E#180D4E

#180D4E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.111 H 280.9°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#180D4E
RGBrgb(24, 13, 78)
HSLhsl(250, 71%, 18%)
HSVhsv(250, 83%, 31%)
CMYKcmyk(69.2%, 83.3%, 0%, 69.4%)
CIE-LABlab(9.26, 26.73, -37.73)
CIE-LCHlch(9.26, 46.23, 305.32°)
OKLaboklab(22.95% 0.0209 -0.1089)
OKLCHoklch(22.95% 0.111 280.9)
XYZxyz(1.8953, 1.0320, 7.3056)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D4E #434E0D
analogous
#0D224E #180D4E #380D4E
triadic
#180D4E #4E180D #0D4E18
tetradic
#180D4E #4E0D22 #434E0D #0D4E38
square
#180D4E #4E0D22 #434E0D #0D4E38
split-complementary
#180D4E #4E380D #224E0D
monochromatic
#08041A #08041A #180D4E #281682 #381EB7

Accessibility & contrast

On white

17.41
#180D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#180D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D4E
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D4E#FFFFFF#000000##FFFFFF
##180D4E1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C50
Deuteranopia (green-blind)
#00184D
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #180d4e;
/* rgb */ color: rgb(24, 13, 78);
/* oklch */ color: oklch(23.0% 0.111 280.9);
Tailwind
colors: {
  custom: {
    50: '#5e4d80',
    500: '#180d4e',
    950: '#000000',
  },
}
SCSS
$custom: #180d4e;
$custom-light: #5e4d80;
$custom-dark: #000000;
JSON
{
  "hex": "#180d4e",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 78
  },
  "hsl": {
    "h": 250.154,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22952,
    "c": 0.11085,
    "h": 280.9
  },
  "luminance": 0.01032
}

Semantic roles & 50–950 ramp

primary
#180D4E
secondary
#7A892E
accent
#EE3AD0
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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