#180D41#180D41

#180D41 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.092 H 285.3°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#180D41
RGBrgb(24, 13, 65)
HSLhsl(253, 67%, 15%)
HSVhsv(253, 80%, 25%)
CMYKcmyk(63.1%, 80%, 0%, 74.5%)
CIE-LABlab(7.80, 22.11, -31.01)
CIE-LCHlch(7.80, 38.08, 305.49°)
OKLaboklab(21.48% 0.0244 -0.0892)
OKLCHoklch(21.48% 0.092 285.3)
XYZxyz(1.4745, 0.8636, 5.0890)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D41 #36410D
analogous
#0D1C41 #180D41 #320D41
triadic
#180D41 #41180D #0D4118
tetradic
#180D41 #410D1C #36410D #0D4132
square
#180D41 #410D1C #36410D #0D4132
split-complementary
#180D41 #41320D #1C410D
monochromatic
#09051A #09051A #180D41 #2B1774 #3E21A7

Accessibility & contrast

On white

17.91
#180D41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180D41
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D41#FFFFFF#000000##FFFFFF
##180D411.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001640
Tritanopia (blue-blind)
#061B25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180d41;
/* rgb */ color: rgb(24, 13, 65);
/* oklch */ color: oklch(21.5% 0.092 285.3);
Tailwind
colors: {
  custom: {
    50: '#5b4c76',
    500: '#180d41',
    950: '#000000',
  },
}
SCSS
$custom: #180d41;
$custom-light: #5b4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#180d41",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 65
  },
  "hsl": {
    "h": 252.692,
    "s": 66.667,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21482,
    "c": 0.09248,
    "h": 285.3
  },
  "luminance": 0.00864
}

Semantic roles & 50–950 ramp

primary
#180D41
secondary
#6C7D2D
accent
#EA3EC5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180D41

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

Preview Lab → · Contrast checker → · Palette generator →

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