#180D47#180D47

#180D47 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.101 H 283.1°. Best body text is #FFFFFF at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#180D47
RGBrgb(24, 13, 71)
HSLhsl(251, 69%, 16%)
HSVhsv(251, 82%, 28%)
CMYKcmyk(66.2%, 81.7%, 0%, 72.2%)
CIE-LABlab(8.45, 24.26, -34.17)
CIE-LCHlch(8.45, 41.90, 305.37°)
OKLaboklab(22.15% 0.0229 -0.0985)
OKLCHoklch(22.15% 0.101 283.1)
XYZxyz(1.6576, 0.9369, 6.0535)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D47 #3C470D
analogous
#0D1F47 #180D47 #350D47
triadic
#180D47 #47180D #0D4718
tetradic
#180D47 #470D1F #3C470D #0D4735
square
#180D47 #470D1F #3C470D #0D4735
split-complementary
#180D47 #47350D #1F470D
monochromatic
#09051A #09051A #180D47 #29167B #3B20AE

Accessibility & contrast

On white

17.69
#180D47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#180D47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D47
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D47#FFFFFF#000000##FFFFFF
##180D471.0017.691.1917.69
#FFFFFF17.691.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A49
Deuteranopia (green-blind)
#001646
Tritanopia (blue-blind)
#001D29
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #180d47;
/* rgb */ color: rgb(24, 13, 71);
/* oklch */ color: oklch(22.1% 0.101 283.1);
Tailwind
colors: {
  custom: {
    50: '#5c4d7b',
    500: '#180d47',
    950: '#000000',
  },
}
SCSS
$custom: #180d47;
$custom-light: #5c4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#180d47",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 71
  },
  "hsl": {
    "h": 251.379,
    "s": 69.048,
    "l": 16.471
  },
  "oklch": {
    "l": 0.22146,
    "c": 0.10109,
    "h": 283.1
  },
  "luminance": 0.00937
}

Semantic roles & 50–950 ramp

primary
#180D47
secondary
#72822D
accent
#EC3CCB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #180D47

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

Preview Lab → · Contrast checker → · Palette generator →

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