#1F0131#1F0131

#1F0131 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.7% C 0.092 H 309.0°. Best body text is #FFFFFF at 18.97:1 contrast (WCAG AA passes).

Color values

HEX#1F0131
RGBrgb(31, 1, 49)
HSLhsl(278, 96%, 10%)
HSVhsv(278, 98%, 19%)
CMYKcmyk(36.7%, 98%, 0%, 80.8%)
CIE-LABlab(4.83, 24.34, -24.15)
CIE-LCHlch(4.83, 34.28, 315.22°)
OKLaboklab(18.73% 0.0578 -0.0714)
OKLCHoklch(18.73% 0.092 309)
XYZxyz(1.1302, 0.5348, 2.9488)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0131 #133101
analogous
#070131 #1F0131 #31012B
triadic
#1F0131 #311F01 #01311F
tetradic
#1F0131 #310701 #133101 #012B31
square
#1F0131 #310701 #133101 #012B31
split-complementary
#1F0131 #2B3101 #013107
monochromatic
#13011E #13011E #1F0131 #45026D #6B03A9

Accessibility & contrast

On white

18.97
#1F0131 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1F0131 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0131
18.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0131#FFFFFF#000000##FFFFFF
##1F01311.0018.971.1118.97
#FFFFFF18.971.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F32
Deuteranopia (green-blind)
#001130
Tritanopia (blue-blind)
#1C0C19
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1f0131;
/* rgb */ color: rgb(31, 1, 49);
/* oklch */ color: oklch(18.7% 0.092 309.0);
Tailwind
colors: {
  custom: {
    50: '#5d4669',
    500: '#1f0131',
    950: '#000000',
  },
}
SCSS
$custom: #1f0131;
$custom-light: #5d4669;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0131",
  "rgb": {
    "r": 31,
    "g": 1,
    "b": 49
  },
  "hsl": {
    "h": 277.5,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18729,
    "c": 0.09186,
    "h": 309
  },
  "luminance": 0.00535
}

Semantic roles & 50–950 ramp

primary
#1F0131
secondary
#3B7717
accent
#FF2979
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F0131

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

Preview Lab → · Contrast checker → · Palette generator →

#1F0131 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva