#180C31#180C31

#180C31 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.7% C 0.070 H 293.9°. Best body text is #FFFFFF at 18.49:1 contrast (WCAG AA passes).

Color values

HEX#180C31
RGBrgb(24, 12, 49)
HSLhsl(259, 61%, 12%)
HSVhsv(259, 76%, 19%)
CMYKcmyk(51%, 75.5%, 0%, 80.8%)
CIE-LABlab(6.13, 16.40, -22.11)
CIE-LCHlch(6.13, 27.53, 306.55°)
OKLaboklab(19.67% 0.0284 -0.0639)
OKLCHoklch(19.67% 0.07 293.9)
XYZxyz(1.0624, 0.6789, 2.9802)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C31 #25310C
analogous
#0C1331 #180C31 #2B0C31
triadic
#180C31 #31180C #0C3118
tetradic
#180C31 #310C13 #25310C #0C312B
square
#180C31 #310C13 #25310C #0C312B
split-complementary
#180C31 #312B0C #13310C
monochromatic
#0C0619 #0C0619 #180C31 #301862 #482493

Accessibility & contrast

On white

18.49
#180C31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180C31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C31
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C31#FFFFFF#000000##FFFFFF
##180C311.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001432
Deuteranopia (green-blind)
#001330
Tritanopia (blue-blind)
#11141C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180c31;
/* rgb */ color: rgb(24, 12, 49);
/* oklch */ color: oklch(19.7% 0.070 293.9);
Tailwind
colors: {
  custom: {
    50: '#574b69',
    500: '#180c31',
    950: '#000000',
  },
}
SCSS
$custom: #180c31;
$custom-light: #574b69;
$custom-dark: #000000;
JSON
{
  "hex": "#180c31",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 49
  },
  "hsl": {
    "h": 259.459,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19669,
    "c": 0.06995,
    "h": 293.9
  },
  "luminance": 0.00679
}

Semantic roles & 50–950 ramp

primary
#180C31
secondary
#586D2C
accent
#E444B0
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #180C31

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

Preview Lab → · Contrast checker → · Palette generator →

#180C31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva