#180541#180541

#180541 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.103 H 288.1°. Best body text is #FFFFFF at 18.47:1 contrast (WCAG AA passes).

Color values

HEX#180541
RGBrgb(24, 5, 65)
HSLhsl(259, 86%, 14%)
HSVhsv(259, 92%, 25%)
CMYKcmyk(63.1%, 92.3%, 0%, 74.5%)
CIE-LABlab(6.18, 26.51, -33.66)
CIE-LCHlch(6.18, 42.84, 308.23°)
OKLaboklab(20.24% 0.032 -0.0977)
OKLCHoklch(20.24% 0.103 288.1)
XYZxyz(1.3848, 0.6843, 5.0591)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180541 #2E4105
analogous
#051041 #180541 #360541
triadic
#180541 #411805 #054118
tetradic
#180541 #410510 #2E4105 #054136
square
#180541 #410510 #2E4105 #054136
split-complementary
#180541 #413605 #104105
monochromatic
#0A021C #0A021C #180541 #2D097A #420EB3

Accessibility & contrast

On white

18.47
#180541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180541
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180541#FFFFFF#000000##FFFFFF
##1805411.0018.471.1418.47
#FFFFFF18.471.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001543
Deuteranopia (green-blind)
#001240
Tritanopia (blue-blind)
#061723
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180541;
/* rgb */ color: rgb(24, 5, 65);
/* oklch */ color: oklch(20.2% 0.103 288.1);
Tailwind
colors: {
  custom: {
    50: '#5b4876',
    500: '#180541',
    950: '#000000',
  },
}
SCSS
$custom: #180541;
$custom-light: #5b4876;
$custom-dark: #000000;
JSON
{
  "hex": "#180541",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 259,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20238,
    "c": 0.10276,
    "h": 288.1
  },
  "luminance": 0.00684
}

Semantic roles & 50–950 ramp

primary
#180541
secondary
#638120
accent
#FC2CBA
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #180541

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

Preview Lab → · Contrast checker → · Palette generator →

#180541 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva