#1F0936#1F0936

#1F0936 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.6% C 0.083 H 301.8°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#1F0936
RGBrgb(31, 9, 54)
HSLhsl(269, 71%, 12%)
HSVhsv(269, 83%, 21%)
CMYKcmyk(42.6%, 83.3%, 0%, 78.8%)
CIE-LABlab(6.80, 22.16, -24.67)
CIE-LCHlch(6.80, 33.16, 311.93°)
OKLaboklab(20.6% 0.0438 -0.0706)
OKLCHoklch(20.6% 0.083 301.8)
XYZxyz(1.3285, 0.7530, 3.5647)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0936 #203609
analogous
#090A36 #1F0936 #360936
triadic
#1F0936 #361F09 #09361F
tetradic
#1F0936 #36090A #203609 #093636
square
#1F0936 #36090A #203609 #093636
split-complementary
#1F0936 #363609 #0A3609
monochromatic
#0F041A #0F041A #1F0936 #3D126A #5B1A9F

Accessibility & contrast

On white

18.25
#1F0936 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0936
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0936#FFFFFF#000000##FFFFFF
##1F09361.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001537
Deuteranopia (green-blind)
#001535
Tritanopia (blue-blind)
#1A141E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0936;
/* rgb */ color: rgb(31, 9, 54);
/* oklch */ color: oklch(20.6% 0.083 301.8);
Tailwind
colors: {
  custom: {
    50: '#5d4a6d',
    500: '#1f0936',
    950: '#000000',
  },
}
SCSS
$custom: #1f0936;
$custom-light: #5d4a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0936",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 54
  },
  "hsl": {
    "h": 269.333,
    "s": 71.429,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20598,
    "c": 0.08308,
    "h": 301.8
  },
  "luminance": 0.00753
}

Semantic roles & 50–950 ramp

primary
#1F0936
secondary
#4E7427
accent
#EE3A96
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0936

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

Preview Lab → · Contrast checker → · Palette generator →

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