#180D4C#180D4C

#180D4C is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.108 H 281.5°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#180D4C
RGBrgb(24, 13, 76)
HSLhsl(250, 71%, 17%)
HSVhsv(250, 83%, 30%)
CMYKcmyk(68.4%, 82.9%, 0%, 70.2%)
CIE-LABlab(9.02, 26.03, -36.72)
CIE-LCHlch(9.02, 45.01, 305.33°)
OKLaboklab(22.72% 0.0215 -0.1059)
OKLCHoklch(22.72% 0.108 281.5)
XYZxyz(1.8247, 1.0037, 6.9337)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D4C #414C0D
analogous
#0D224C #180D4C #370D4C
triadic
#180D4C #4C180D #0D4C18
tetradic
#180D4C #4C0D22 #414C0D #0D4C37
square
#180D4C #4C0D22 #414C0D #0D4C37
split-complementary
#180D4C #4C370D #224C0D
monochromatic
#08041A #08041A #180D4C #291680 #391FB5

Accessibility & contrast

On white

17.49
#180D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#180D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D4C
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D4C#FFFFFF#000000##FFFFFF
##180D4C1.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4E
Deuteranopia (green-blind)
#00174B
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #180d4c;
/* rgb */ color: rgb(24, 13, 76);
/* oklch */ color: oklch(22.7% 0.108 281.5);
Tailwind
colors: {
  custom: {
    50: '#5d4d7f',
    500: '#180d4c',
    950: '#000000',
  },
}
SCSS
$custom: #180d4c;
$custom-light: #5d4d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#180d4c",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 250.476,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22719,
    "c": 0.10808,
    "h": 281.5
  },
  "luminance": 0.01004
}

Semantic roles & 50–950 ramp

primary
#180D4C
secondary
#78872E
accent
#EE3ACE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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