#180847#180847

#180847 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.107 H 284.6°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#180847
RGBrgb(24, 8, 71)
HSLhsl(255, 80%, 15%)
HSVhsv(255, 89%, 28%)
CMYKcmyk(66.2%, 88.7%, 0%, 72.2%)
CIE-LABlab(7.43, 27.16, -35.85)
CIE-LCHlch(7.43, 44.98, 307.14°)
OKLaboklab(21.42% 0.0269 -0.1034)
OKLCHoklch(21.42% 0.107 284.6)
XYZxyz(1.6005, 0.8227, 6.0345)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180847 #374708
analogous
#081747 #180847 #370847
triadic
#180847 #471808 #084718
tetradic
#180847 #470817 #374708 #084737
square
#180847 #470817 #374708 #084737
split-complementary
#180847 #473708 #174708
monochromatic
#09031C #09031C #180847 #2B0E7E #3D14B5

Accessibility & contrast

On white

18.03
#180847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#180847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180847
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180847#FFFFFF#000000##FFFFFF
##1808471.0018.031.1618.03
#FFFFFF18.031.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001849
Deuteranopia (green-blind)
#001446
Tritanopia (blue-blind)
#001B28
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180847;
/* rgb */ color: rgb(24, 8, 71);
/* oklch */ color: oklch(21.4% 0.107 284.6);
Tailwind
colors: {
  custom: {
    50: '#5d4a7b',
    500: '#180847',
    950: '#000000',
  },
}
SCSS
$custom: #180847;
$custom-light: #5d4a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#180847",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 255.238,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2142,
    "c": 0.10684,
    "h": 284.6
  },
  "luminance": 0.00823
}

Semantic roles & 50–950 ramp

primary
#180847
secondary
#6D8526
accent
#F632C4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #180847

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

Preview Lab → · Contrast checker → · Palette generator →

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