#180547#180547

#180547 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.110 H 285.4°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#180547
RGBrgb(24, 5, 71)
HSLhsl(257, 87%, 15%)
HSVhsv(257, 93%, 28%)
CMYKcmyk(66.2%, 93%, 0%, 72.2%)
CIE-LABlab(6.84, 28.82, -36.82)
CIE-LCHlch(6.84, 46.76, 308.05°)
OKLaboklab(20.98% 0.0293 -0.1064)
OKLCHoklch(20.98% 0.11 285.4)
XYZxyz(1.5679, 0.7576, 6.0236)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180547 #344705
analogous
#051347 #180547 #390547
triadic
#180547 #471805 #054718
tetradic
#180547 #470513 #344705 #054739
square
#180547 #470513 #344705 #054739
split-complementary
#180547 #473905 #134705
monochromatic
#0A021D #0A021D #180547 #2B0980 #3F0DB9

Accessibility & contrast

On white

18.24
#180547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#180547 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180547
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180547#FFFFFF#000000##FFFFFF
##1805471.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001749
Deuteranopia (green-blind)
#001346
Tritanopia (blue-blind)
#001927
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180547;
/* rgb */ color: rgb(24, 5, 71);
/* oklch */ color: oklch(21.0% 0.110 285.4);
Tailwind
colors: {
  custom: {
    50: '#5d487b',
    500: '#180547',
    950: '#000000',
  },
}
SCSS
$custom: #180547;
$custom-light: #5d487b;
$custom-dark: #000000;
JSON
{
  "hex": "#180547",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 71
  },
  "hsl": {
    "h": 257.273,
    "s": 86.842,
    "l": 14.902
  },
  "oklch": {
    "l": 0.20983,
    "c": 0.11037,
    "h": 285.4
  },
  "luminance": 0.00758
}

Semantic roles & 50–950 ramp

primary
#180547
secondary
#6A8721
accent
#FD2BC0
background
#F5F4F7
surface
#E9E6EE
border
#C5C2C9
text
#050009
muted
#79777B

Preview Lab

Preview with #180547

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

Preview Lab → · Contrast checker → · Palette generator →

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