#1F0937#1F0937

#1F0937 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.7% C 0.084 H 301.1°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#1F0937
RGBrgb(31, 9, 55)
HSLhsl(269, 72%, 13%)
HSVhsv(269, 84%, 22%)
CMYKcmyk(43.6%, 83.6%, 0%, 78.4%)
CIE-LABlab(6.89, 22.50, -25.26)
CIE-LCHlch(6.89, 33.83, 311.70°)
OKLaboklab(20.7% 0.0436 -0.0723)
OKLCHoklch(20.7% 0.084 301.1)
XYZxyz(1.3522, 0.7625, 3.6896)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0937 #213709
analogous
#090A37 #1F0937 #360937
triadic
#1F0937 #371F09 #09371F
tetradic
#1F0937 #37090A #213709 #093736
square
#1F0937 #37090A #213709 #093736
split-complementary
#1F0937 #373609 #0A3709
monochromatic
#0F041A #0F041A #1F0937 #3D126C #5A1AA0

Accessibility & contrast

On white

18.22
#1F0937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1F0937 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0937
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0937#FFFFFF#000000##FFFFFF
##1F09371.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001538
Deuteranopia (green-blind)
#001536
Tritanopia (blue-blind)
#1A141F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0937;
/* rgb */ color: rgb(31, 9, 55);
/* oklch */ color: oklch(20.7% 0.084 301.1);
Tailwind
colors: {
  custom: {
    50: '#5d4a6e',
    500: '#1f0937',
    950: '#000000',
  },
}
SCSS
$custom: #1f0937;
$custom-light: #5d4a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0937",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 55
  },
  "hsl": {
    "h": 268.696,
    "s": 71.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.20695,
    "c": 0.08441,
    "h": 301.1
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#1F0937
secondary
#507527
accent
#EF3998
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0937

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

Preview Lab → · Contrast checker → · Palette generator →

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