#180D40#180D40

#180D40 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.4% C 0.091 H 285.7°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#180D40
RGBrgb(24, 13, 64)
HSLhsl(253, 66%, 15%)
HSVhsv(253, 80%, 25%)
CMYKcmyk(62.5%, 79.7%, 0%, 74.9%)
CIE-LABlab(7.70, 21.74, -30.46)
CIE-LCHlch(7.70, 37.43, 305.51°)
OKLaboklab(21.37% 0.0246 -0.0876)
OKLCHoklch(21.37% 0.091 285.7)
XYZxyz(1.4457, 0.8521, 4.9378)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D40 #35400D
analogous
#0D1C40 #180D40 #310D40
triadic
#180D40 #40180D #0D4018
tetradic
#180D40 #400D1C #35400D #0D4031
square
#180D40 #400D1C #35400D #0D4031
split-complementary
#180D40 #40310D #1C400D
monochromatic
#0A0519 #0A0519 #180D40 #2B1773 #3E22A6

Accessibility & contrast

On white

17.94
#180D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#180D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D40
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D40#FFFFFF#000000##FFFFFF
##180D401.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#071A25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180d40;
/* rgb */ color: rgb(24, 13, 64);
/* oklch */ color: oklch(21.4% 0.091 285.7);
Tailwind
colors: {
  custom: {
    50: '#5a4c75',
    500: '#180d40',
    950: '#000000',
  },
}
SCSS
$custom: #180d40;
$custom-light: #5a4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#180d40",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 252.941,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21374,
    "c": 0.09102,
    "h": 285.7
  },
  "luminance": 0.00852
}

Semantic roles & 50–950 ramp

primary
#180D40
secondary
#6B7C2D
accent
#E93FC4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180D40

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

Preview Lab → · Contrast checker → · Palette generator →

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