#180936#180936

#180936 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.6% C 0.082 H 292.4°. Best body text is #FFFFFF at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#180936
RGBrgb(24, 9, 54)
HSLhsl(260, 71%, 12%)
HSVhsv(260, 83%, 21%)
CMYKcmyk(55.6%, 83.3%, 0%, 78.8%)
CIE-LABlab(5.92, 19.95, -26.13)
CIE-LCHlch(5.92, 32.87, 307.36°)
OKLaboklab(19.64% 0.0314 -0.0759)
OKLCHoklch(19.64% 0.082 292.4)
XYZxyz(1.1400, 0.6559, 3.5558)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180936 #273609
analogous
#091036 #180936 #2F0936
triadic
#180936 #361809 #093618
tetradic
#180936 #360910 #273609 #09362F
square
#180936 #360910 #273609 #09362F
split-complementary
#180936 #362F09 #103609
monochromatic
#0C041A #0C041A #180936 #2F126A #471A9F

Accessibility & contrast

On white

18.56
#180936 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#180936 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180936
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180936#FFFFFF#000000##FFFFFF
##1809361.0018.561.1318.56
#FFFFFF18.561.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001437
Deuteranopia (green-blind)
#001235
Tritanopia (blue-blind)
#0F151E
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180936;
/* rgb */ color: rgb(24, 9, 54);
/* oklch */ color: oklch(19.6% 0.082 292.4);
Tailwind
colors: {
  custom: {
    50: '#584a6d',
    500: '#180936',
    950: '#000000',
  },
}
SCSS
$custom: #180936;
$custom-light: #584a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#180936",
  "rgb": {
    "r": 24,
    "g": 9,
    "b": 54
  },
  "hsl": {
    "h": 260,
    "s": 71.429,
    "l": 12.353
  },
  "oklch": {
    "l": 0.19641,
    "c": 0.08216,
    "h": 292.4
  },
  "luminance": 0.00656
}

Semantic roles & 50–950 ramp

primary
#180936
secondary
#5A7427
accent
#EE3AB2
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #180936

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

Preview Lab → · Contrast checker → · Palette generator →

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