#180542#180542

#180542 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.104 H 287.6°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#180542
RGBrgb(24, 5, 66)
HSLhsl(259, 86%, 14%)
HSVhsv(259, 92%, 26%)
CMYKcmyk(63.6%, 92.4%, 0%, 74.1%)
CIE-LABlab(6.29, 26.91, -34.20)
CIE-LCHlch(6.29, 43.51, 308.20°)
OKLaboklab(20.36% 0.0315 -0.0991)
OKLCHoklch(20.36% 0.104 287.6)
XYZxyz(1.4140, 0.6960, 5.2130)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180542 #2F4205
analogous
#051142 #180542 #370542
triadic
#180542 #421805 #054218
tetradic
#180542 #420511 #2F4205 #054237
square
#180542 #420511 #2F4205 #054237
split-complementary
#180542 #423705 #114205
monochromatic
#0A021C #0A021C #180542 #2D097B #410EB4

Accessibility & contrast

On white

18.43
#180542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180542
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180542#FFFFFF#000000##FFFFFF
##1805421.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001544
Deuteranopia (green-blind)
#001241
Tritanopia (blue-blind)
#051724
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180542;
/* rgb */ color: rgb(24, 5, 66);
/* oklch */ color: oklch(20.4% 0.104 287.6);
Tailwind
colors: {
  custom: {
    50: '#5b4877',
    500: '#180542',
    950: '#000000',
  },
}
SCSS
$custom: #180542;
$custom-light: #5b4877;
$custom-dark: #000000;
JSON
{
  "hex": "#180542",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 258.689,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20361,
    "c": 0.10404,
    "h": 287.6
  },
  "luminance": 0.00696
}

Semantic roles & 50–950 ramp

primary
#180542
secondary
#648220
accent
#FC2CBB
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040009
muted
#79777B

Preview Lab

Preview with #180542

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

Preview Lab → · Contrast checker → · Palette generator →

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