#180940#180940

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

Color values

HEX#180940
RGBrgb(24, 9, 64)
HSLhsl(256, 75%, 14%)
HSVhsv(256, 86%, 25%)
CMYKcmyk(62.5%, 85.9%, 0%, 74.9%)
CIE-LABlab(6.86, 24.01, -31.83)
CIE-LCHlch(6.86, 39.87, 307.02°)
OKLaboklab(20.74% 0.0285 -0.0919)
OKLCHoklch(20.74% 0.096 287.2)
XYZxyz(1.3995, 0.7597, 4.9224)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180940 #314009
analogous
#091640 #180940 #340940
triadic
#180940 #401809 #094018
tetradic
#180940 #400916 #314009 #094034
square
#180940 #400916 #314009 #094034
split-complementary
#180940 #403409 #164009
monochromatic
#0A041B #0A041B #180940 #2C1176 #4018AB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##180940#FFFFFF#000000##FFFFFF
##1809401.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)
#001642
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#071824
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180940;
/* rgb */ color: rgb(24, 9, 64);
/* oklch */ color: oklch(20.7% 0.096 287.2);
Tailwind
colors: {
  custom: {
    50: '#5b4a75',
    500: '#180940',
    950: '#000000',
  },
}
SCSS
$custom: #180940;
$custom-light: #5b4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#180940",
  "rgb": {
    "r": 24,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 256.364,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20744,
    "c": 0.0962,
    "h": 287.2
  },
  "luminance": 0.0076
}

Semantic roles & 50–950 ramp

primary
#180940
secondary
#667E27
accent
#F236BF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180940

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

Preview Lab → · Contrast checker → · Palette generator →

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