#1F0836#1F0836

#1F0836 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.085 H 302.2°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#1F0836
RGBrgb(31, 8, 54)
HSLhsl(270, 74%, 12%)
HSVhsv(270, 85%, 21%)
CMYKcmyk(42.6%, 85.2%, 0%, 78.8%)
CIE-LABlab(6.61, 22.67, -24.98)
CIE-LCHlch(6.61, 33.74, 312.22°)
OKLaboklab(20.44% 0.0451 -0.0717)
OKLCHoklch(20.44% 0.085 302.2)
XYZxyz(1.3176, 0.7313, 3.5611)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0836 #1F3608
analogous
#080836 #1F0836 #360836
triadic
#1F0836 #361F08 #08361F
tetradic
#1F0836 #360808 #1F3608 #083636
square
#1F0836 #360808 #1F3608 #083636
split-complementary
#1F0836 #363608 #083608
monochromatic
#0F041B #0F041B #1F0836 #3E106B #5C18A1

Accessibility & contrast

On white

18.32
#1F0836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0836
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0836#FFFFFF#000000##FFFFFF
##1F08361.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001437
Deuteranopia (green-blind)
#001435
Tritanopia (blue-blind)
#1A131E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0836;
/* rgb */ color: rgb(31, 8, 54);
/* oklch */ color: oklch(20.4% 0.085 302.2);
Tailwind
colors: {
  custom: {
    50: '#5d4a6d',
    500: '#1f0836',
    950: '#000000',
  },
}
SCSS
$custom: #1f0836;
$custom-light: #5d4a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0836",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 54
  },
  "hsl": {
    "h": 270,
    "s": 74.194,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20442,
    "c": 0.08468,
    "h": 302.2
  },
  "luminance": 0.00731
}

Semantic roles & 50–950 ramp

primary
#1F0836
secondary
#4D7525
accent
#F13794
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0836

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

Preview Lab → · Contrast checker → · Palette generator →

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