#180A31#180A31

#180A31 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.073 H 295.1°. Best body text is #FFFFFF at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#180A31
RGBrgb(24, 10, 49)
HSLhsl(262, 66%, 12%)
HSVhsv(262, 80%, 19%)
CMYKcmyk(51%, 79.6%, 0%, 80.8%)
CIE-LABlab(5.72, 17.37, -22.78)
CIE-LCHlch(5.72, 28.65, 307.34°)
OKLaboklab(19.3% 0.0311 -0.0664)
OKLCHoklch(19.3% 0.073 295.1)
XYZxyz(1.0395, 0.6330, 2.9725)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A31 #23310A
analogous
#0A1031 #180A31 #2C0A31
triadic
#180A31 #31180A #0A3118
tetradic
#180A31 #310A10 #23310A #0A312C
square
#180A31 #310A10 #23310A #0A312C
split-complementary
#180A31 #312C0A #10310A
monochromatic
#0C0519 #0C0519 #180A31 #311464 #4A1F97

Accessibility & contrast

On white

18.64
#180A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#180A31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180A31
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A31#FFFFFF#000000##FFFFFF
##180A311.0018.641.1318.64
#FFFFFF18.641.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001332
Deuteranopia (green-blind)
#001230
Tritanopia (blue-blind)
#11131C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180a31;
/* rgb */ color: rgb(24, 10, 49);
/* oklch */ color: oklch(19.3% 0.073 295.1);
Tailwind
colors: {
  custom: {
    50: '#574a69',
    500: '#180a31',
    950: '#000000',
  },
}
SCSS
$custom: #180a31;
$custom-light: #574a69;
$custom-dark: #000000;
JSON
{
  "hex": "#180a31",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 49
  },
  "hsl": {
    "h": 261.538,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19304,
    "c": 0.07328,
    "h": 295.1
  },
  "luminance": 0.00633
}

Semantic roles & 50–950 ramp

primary
#180A31
secondary
#556E29
accent
#E93FAC
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #180A31

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

Preview Lab → · Contrast checker → · Palette generator →

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