#180931#180931

#180931 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.1% C 0.075 H 295.7°. Best body text is #FFFFFF at 18.71:1 contrast (WCAG AA passes).

Color values

HEX#180931
RGBrgb(24, 9, 49)
HSLhsl(263, 69%, 11%)
HSVhsv(263, 82%, 19%)
CMYKcmyk(51%, 81.6%, 0%, 80.8%)
CIE-LABlab(5.52, 17.83, -23.09)
CIE-LCHlch(5.52, 29.17, 307.67°)
OKLaboklab(19.13% 0.0325 -0.0675)
OKLCHoklch(19.13% 0.075 295.7)
XYZxyz(1.0286, 0.6113, 2.9689)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180931 #223109
analogous
#090E31 #180931 #2C0931
triadic
#180931 #311809 #093118
tetradic
#180931 #31090E #223109 #09312C
square
#180931 #31090E #223109 #09312C
split-complementary
#180931 #312C09 #0E3109
monochromatic
#0D051A #0D051A #180931 #311265 #4B1C98

Accessibility & contrast

On white

18.71
#180931 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#180931 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180931
18.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180931#FFFFFF#000000##FFFFFF
##1809311.0018.711.1218.71
#FFFFFF18.711.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001232
Deuteranopia (green-blind)
#001230
Tritanopia (blue-blind)
#11131B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #180931;
/* rgb */ color: rgb(24, 9, 49);
/* oklch */ color: oklch(19.1% 0.075 295.7);
Tailwind
colors: {
  custom: {
    50: '#574a69',
    500: '#180931',
    950: '#000000',
  },
}
SCSS
$custom: #180931;
$custom-light: #574a69;
$custom-dark: #000000;
JSON
{
  "hex": "#180931",
  "rgb": {
    "r": 24,
    "g": 9,
    "b": 49
  },
  "hsl": {
    "h": 262.5,
    "s": 68.966,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19126,
    "c": 0.07493,
    "h": 295.7
  },
  "luminance": 0.00611
}

Semantic roles & 50–950 ramp

primary
#180931
secondary
#546F27
accent
#EC3CAA
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #180931

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

Preview Lab → · Contrast checker → · Palette generator →

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