#180841#180841

#180841 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.7% C 0.099 H 287.1°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#180841
RGBrgb(24, 8, 65)
HSLhsl(257, 78%, 14%)
HSVhsv(257, 88%, 25%)
CMYKcmyk(63.1%, 87.7%, 0%, 74.5%)
CIE-LABlab(6.77, 24.93, -32.70)
CIE-LCHlch(6.77, 41.11, 307.32°)
OKLaboklab(20.71% 0.0291 -0.0945)
OKLCHoklch(20.71% 0.099 287.1)
XYZxyz(1.4174, 0.7494, 5.0700)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180841 #314108
analogous
#081541 #180841 #350841
triadic
#180841 #411808 #084118
tetradic
#180841 #410815 #314108 #084135
square
#180841 #410815 #314108 #084135
split-complementary
#180841 #413508 #154108
monochromatic
#0A031B #0A031B #180841 #2C0F77 #4015AE

Accessibility & contrast

On white

18.26
#180841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180841
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180841#FFFFFF#000000##FFFFFF
##1808411.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001643
Deuteranopia (green-blind)
#001340
Tritanopia (blue-blind)
#061824
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180841;
/* rgb */ color: rgb(24, 8, 65);
/* oklch */ color: oklch(20.7% 0.099 287.1);
Tailwind
colors: {
  custom: {
    50: '#5b4976',
    500: '#180841',
    950: '#000000',
  },
}
SCSS
$custom: #180841;
$custom-light: #5b4976;
$custom-dark: #000000;
JSON
{
  "hex": "#180841",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 256.842,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20707,
    "c": 0.09882,
    "h": 287.1
  },
  "luminance": 0.0075
}

Semantic roles & 50–950 ramp

primary
#180841
secondary
#667F25
accent
#F533BE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180841

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

Preview Lab → · Contrast checker → · Palette generator →

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