#180D42#180D42

#180D42 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.094 H 284.9°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#180D42
RGBrgb(24, 13, 66)
HSLhsl(252, 67%, 15%)
HSVhsv(252, 80%, 26%)
CMYKcmyk(63.6%, 80.3%, 0%, 74.1%)
CIE-LABlab(7.91, 22.47, -31.54)
CIE-LCHlch(7.91, 38.73, 305.47°)
OKLaboklab(21.59% 0.0241 -0.0908)
OKLCHoklch(21.59% 0.094 284.9)
XYZxyz(1.5037, 0.8753, 5.2429)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D42 #37420D
analogous
#0D1C42 #180D42 #320D42
triadic
#180D42 #42180D #0D4218
tetradic
#180D42 #420D1C #37420D #0D4232
square
#180D42 #420D1C #37420D #0D4232
split-complementary
#180D42 #42320D #1C420D
monochromatic
#09051A #09051A #180D42 #2B1775 #3D21A8

Accessibility & contrast

On white

17.87
#180D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#180D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D42
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D42#FFFFFF#000000##FFFFFF
##180D421.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#051B26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180d42;
/* rgb */ color: rgb(24, 13, 66);
/* oklch */ color: oklch(21.6% 0.094 284.9);
Tailwind
colors: {
  custom: {
    50: '#5b4c77',
    500: '#180d42',
    950: '#000000',
  },
}
SCSS
$custom: #180d42;
$custom-light: #5b4c77;
$custom-dark: #000000;
JSON
{
  "hex": "#180d42",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 252.453,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21591,
    "c": 0.09393,
    "h": 284.9
  },
  "luminance": 0.00875
}

Semantic roles & 50–950 ramp

primary
#180D42
secondary
#6D7E2D
accent
#EA3EC6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180D42

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

Preview Lab → · Contrast checker → · Palette generator →

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