#180131#180131

#180131 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.6% C 0.090 H 299.9°. Best body text is #FFFFFF at 19.31:1 contrast (WCAG AA passes).

Color values

HEX#180131
RGBrgb(24, 1, 49)
HSLhsl(269, 96%, 10%)
HSVhsv(269, 98%, 19%)
CMYKcmyk(51%, 98%, 0%, 80.8%)
CIE-LABlab(3.95, 21.39, -25.60)
CIE-LCHlch(3.95, 33.36, 309.88°)
OKLaboklab(17.56% 0.045 -0.0781)
OKLCHoklch(17.56% 0.09 299.9)
XYZxyz(0.9418, 0.4376, 2.9400)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180131 #1A3101
analogous
#010231 #180131 #300131
triadic
#180131 #311801 #013118
tetradic
#180131 #310102 #1A3101 #013130
square
#180131 #310102 #1A3101 #013130
split-complementary
#180131 #313001 #023101
monochromatic
#0F011E #0F011E #180131 #35026D #5303A9

Accessibility & contrast

On white

19.31
#180131 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#180131 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180131
19.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180131#FFFFFF#000000##FFFFFF
##1801311.0019.311.0919.31
#FFFFFF19.311.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E32
Deuteranopia (green-blind)
#000E30
Tritanopia (blue-blind)
#120D19
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #180131;
/* rgb */ color: rgb(24, 1, 49);
/* oklch */ color: oklch(17.6% 0.090 299.9);
Tailwind
colors: {
  custom: {
    50: '#574669',
    500: '#180131',
    950: '#000000',
  },
}
SCSS
$custom: #180131;
$custom-light: #574669;
$custom-dark: #000000;
JSON
{
  "hex": "#180131",
  "rgb": {
    "r": 24,
    "g": 1,
    "b": 49
  },
  "hsl": {
    "h": 268.75,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.17564,
    "c": 0.09016,
    "h": 299.9
  },
  "luminance": 0.00438
}

Semantic roles & 50–950 ramp

primary
#180131
secondary
#497717
accent
#FF2998
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #180131

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

Preview Lab → · Contrast checker → · Palette generator →

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