#180540#180540

#180540 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.101 H 288.6°. Best body text is #FFFFFF at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#180540
RGBrgb(24, 5, 64)
HSLhsl(259, 86%, 14%)
HSVhsv(259, 92%, 25%)
CMYKcmyk(62.5%, 92.2%, 0%, 74.9%)
CIE-LABlab(6.08, 26.11, -33.11)
CIE-LCHlch(6.08, 42.17, 308.26°)
OKLaboklab(20.12% 0.0324 -0.0962)
OKLCHoklch(20.12% 0.101 288.6)
XYZxyz(1.3561, 0.6728, 4.9079)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180540 #2D4005
analogous
#050F40 #180540 #350540
triadic
#180540 #401805 #054018
tetradic
#180540 #40050F #2D4005 #054035
square
#180540 #40050F #2D4005 #054035
split-complementary
#180540 #403505 #0F4005
monochromatic
#0B021C #0B021C #180540 #2D0979 #430EB2

Accessibility & contrast

On white

18.51
#180540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#180540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180540
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180540#FFFFFF#000000##FFFFFF
##1805401.0018.511.1318.51
#FFFFFF18.511.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#071623
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180540;
/* rgb */ color: rgb(24, 5, 64);
/* oklch */ color: oklch(20.1% 0.101 288.6);
Tailwind
colors: {
  custom: {
    50: '#5b4875',
    500: '#180540',
    950: '#000000',
  },
}
SCSS
$custom: #180540;
$custom-light: #5b4875;
$custom-dark: #000000;
JSON
{
  "hex": "#180540",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 259.322,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20116,
    "c": 0.10149,
    "h": 288.6
  },
  "luminance": 0.00673
}

Semantic roles & 50–950 ramp

primary
#180540
secondary
#628120
accent
#FC2CB9
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #180540

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

Preview Lab → · Contrast checker → · Palette generator →

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