#180840#180840

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

Color values

HEX#180840
RGBrgb(24, 8, 64)
HSLhsl(257, 78%, 14%)
HSVhsv(257, 88%, 25%)
CMYKcmyk(62.5%, 87.5%, 0%, 74.9%)
CIE-LABlab(6.67, 24.54, -32.15)
CIE-LCHlch(6.67, 40.45, 307.35°)
OKLaboklab(20.59% 0.0294 -0.0929)
OKLCHoklch(20.59% 0.097 287.6)
XYZxyz(1.3887, 0.7379, 4.9188)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180840 #304008
analogous
#081440 #180840 #340840
triadic
#180840 #401808 #084018
tetradic
#180840 #400814 #304008 #084034
square
#180840 #400814 #304008 #084034
split-complementary
#180840 #403408 #144008
monochromatic
#0A031B #0A031B #180840 #2C0F76 #4116AD

Accessibility & contrast

On white

18.30
#180840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180840
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180840#FFFFFF#000000##FFFFFF
##1808401.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#071824
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180840;
/* rgb */ color: rgb(24, 8, 64);
/* oklch */ color: oklch(20.6% 0.097 287.6);
Tailwind
colors: {
  custom: {
    50: '#5b4975',
    500: '#180840',
    950: '#000000',
  },
}
SCSS
$custom: #180840;
$custom-light: #5b4975;
$custom-dark: #000000;
JSON
{
  "hex": "#180840",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 257.143,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20591,
    "c": 0.09748,
    "h": 287.6
  },
  "luminance": 0.00738
}

Semantic roles & 50–950 ramp

primary
#180840
secondary
#657E25
accent
#F434BD
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180840

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

Preview Lab → · Contrast checker → · Palette generator →

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