#180D44#180D44

#180D44 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.097 H 284.1°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#180D44
RGBrgb(24, 13, 68)
HSLhsl(252, 68%, 16%)
HSVhsv(252, 81%, 27%)
CMYKcmyk(64.7%, 80.9%, 0%, 73.3%)
CIE-LABlab(8.12, 23.19, -32.60)
CIE-LCHlch(8.12, 40.01, 305.42°)
OKLaboklab(21.81% 0.0236 -0.0939)
OKLCHoklch(21.81% 0.097 284.1)
XYZxyz(1.5637, 0.8993, 5.5589)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D44 #39440D
analogous
#0D1D44 #180D44 #330D44
triadic
#180D44 #44180D #0D4418
tetradic
#180D44 #440D1D #39440D #0D4433
square
#180D44 #440D1D #39440D #0D4433
split-complementary
#180D44 #44330D #1D440D
monochromatic
#09051A #09051A #180D44 #2A1777 #3C21AB

Accessibility & contrast

On white

17.80
#180D44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180D44
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D44#FFFFFF#000000##FFFFFF
##180D441.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001946
Deuteranopia (green-blind)
#001643
Tritanopia (blue-blind)
#031C27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #180d44;
/* rgb */ color: rgb(24, 13, 68);
/* oklch */ color: oklch(21.8% 0.097 284.1);
Tailwind
colors: {
  custom: {
    50: '#5b4d79',
    500: '#180d44',
    950: '#000000',
  },
}
SCSS
$custom: #180d44;
$custom-light: #5b4d79;
$custom-dark: #000000;
JSON
{
  "hex": "#180d44",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 68
  },
  "hsl": {
    "h": 252,
    "s": 67.901,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21811,
    "c": 0.09682,
    "h": 284.1
  },
  "luminance": 0.00899
}

Semantic roles & 50–950 ramp

primary
#180D44
secondary
#6F7F2D
accent
#EB3DC8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180D44

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

Preview Lab → · Contrast checker → · Palette generator →

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