#180731#180731

#180731 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.078 H 296.8°. Best body text is #FFFFFF at 18.86:1 contrast (WCAG AA passes).

Color values

HEX#180731
RGBrgb(24, 7, 49)
HSLhsl(264, 75%, 11%)
HSVhsv(264, 86%, 19%)
CMYKcmyk(51%, 85.7%, 0%, 80.8%)
CIE-LABlab(5.13, 18.74, -23.72)
CIE-LCHlch(5.13, 30.23, 308.31°)
OKLaboklab(18.76% 0.0353 -0.07)
OKLCHoklch(18.76% 0.078 296.8)
XYZxyz(1.0069, 0.5679, 2.9617)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180731 #203107
analogous
#070B31 #180731 #2D0731
triadic
#180731 #311807 #073118
tetradic
#180731 #31070B #203107 #07312D
square
#180731 #31070B #203107 #07312D
split-complementary
#180731 #312D07 #0B3107
monochromatic
#0D041B #0D041B #180731 #320F67 #4C169C

Accessibility & contrast

On white

18.86
#180731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#180731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180731
18.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180731#FFFFFF#000000##FFFFFF
##1807311.0018.861.1118.86
#FFFFFF18.861.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001132
Deuteranopia (green-blind)
#001130
Tritanopia (blue-blind)
#11111B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #180731;
/* rgb */ color: rgb(24, 7, 49);
/* oklch */ color: oklch(18.8% 0.078 296.8);
Tailwind
colors: {
  custom: {
    50: '#574969',
    500: '#180731',
    950: '#000000',
  },
}
SCSS
$custom: #180731;
$custom-light: #574969;
$custom-dark: #000000;
JSON
{
  "hex": "#180731",
  "rgb": {
    "r": 24,
    "g": 7,
    "b": 49
  },
  "hsl": {
    "h": 264.286,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.18759,
    "c": 0.07838,
    "h": 296.8
  },
  "luminance": 0.00568
}

Semantic roles & 50–950 ramp

primary
#180731
secondary
#517123
accent
#F236A6
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030106
muted
#78777A

Preview Lab

Preview with #180731

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

Preview Lab → · Contrast checker → · Palette generator →

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