#180842#180842

#180842 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.100 H 286.7°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#180842
RGBrgb(24, 8, 66)
HSLhsl(257, 78%, 15%)
HSVhsv(257, 88%, 26%)
CMYKcmyk(63.6%, 87.9%, 0%, 74.1%)
CIE-LABlab(6.88, 25.31, -33.23)
CIE-LCHlch(6.88, 41.77, 307.29°)
OKLaboklab(20.82% 0.0287 -0.096)
OKLCHoklch(20.82% 0.1 286.7)
XYZxyz(1.4466, 0.7611, 5.2239)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180842 #324208
analogous
#081542 #180842 #350842
triadic
#180842 #421808 #084218
tetradic
#180842 #420815 #324208 #084235
square
#180842 #420815 #324208 #084235
split-complementary
#180842 #423508 #154208
monochromatic
#0A031B #0A031B #180842 #2C0F79 #4015AF

Accessibility & contrast

On white

18.23
#180842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180842
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180842#FFFFFF#000000##FFFFFF
##1808421.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#051925
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180842;
/* rgb */ color: rgb(24, 8, 66);
/* oklch */ color: oklch(20.8% 0.100 286.7);
Tailwind
colors: {
  custom: {
    50: '#5b4a77',
    500: '#180842',
    950: '#000000',
  },
}
SCSS
$custom: #180842;
$custom-light: #5b4a77;
$custom-dark: #000000;
JSON
{
  "hex": "#180842",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 256.552,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20824,
    "c": 0.10018,
    "h": 286.7
  },
  "luminance": 0.00761
}

Semantic roles & 50–950 ramp

primary
#180842
secondary
#678025
accent
#F533BF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180842

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

Preview Lab → · Contrast checker → · Palette generator →

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