#180431#180431

#180431 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.2% C 0.084 H 298.4°. Best body text is #FFFFFF at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#180431
RGBrgb(24, 4, 49)
HSLhsl(267, 85%, 10%)
HSVhsv(267, 92%, 19%)
CMYKcmyk(51%, 91.8%, 0%, 80.8%)
CIE-LABlab(4.54, 20.07, -24.66)
CIE-LCHlch(4.54, 31.79, 309.15°)
OKLaboklab(18.18% 0.0399 -0.0739)
OKLCHoklch(18.18% 0.084 298.4)
XYZxyz(0.9743, 0.5028, 2.9508)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180431 #1D3104
analogous
#040631 #180431 #2E0431
triadic
#180431 #311804 #043118
tetradic
#180431 #310406 #1D3104 #04312E
square
#180431 #310406 #1D3104 #04312E
split-complementary
#180431 #312E04 #063104
monochromatic
#0E021C #0E021C #180431 #34096A #4F0DA2

Accessibility & contrast

On white

19.08
#180431 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#180431 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180431
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180431#FFFFFF#000000##FFFFFF
##1804311.0019.081.1019.08
#FFFFFF19.081.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001032
Deuteranopia (green-blind)
#000F30
Tritanopia (blue-blind)
#120F1A
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #180431;
/* rgb */ color: rgb(24, 4, 49);
/* oklch */ color: oklch(18.2% 0.084 298.4);
Tailwind
colors: {
  custom: {
    50: '#574769',
    500: '#180431',
    950: '#000000',
  },
}
SCSS
$custom: #180431;
$custom-light: #574769;
$custom-dark: #000000;
JSON
{
  "hex": "#180431",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 49
  },
  "hsl": {
    "h": 266.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.18181,
    "c": 0.08397,
    "h": 298.4
  },
  "luminance": 0.00503
}

Semantic roles & 50–950 ramp

primary
#180431
secondary
#4D731D
accent
#FB2D9F
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #180431

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

Preview Lab → · Contrast checker → · Palette generator →

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