#1F0832#1F0832

#1F0832 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.079 H 305.4°. Best body text is #FFFFFF at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#1F0832
RGBrgb(31, 8, 50)
HSLhsl(273, 72%, 11%)
HSVhsv(273, 84%, 20%)
CMYKcmyk(38%, 84%, 0%, 80.4%)
CIE-LABlab(6.28, 21.27, -22.57)
CIE-LCHlch(6.28, 31.01, 313.31°)
OKLaboklab(20.06% 0.046 -0.0648)
OKLCHoklch(20.06% 0.079 305.4)
XYZxyz(1.2275, 0.6953, 3.0865)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0832 #1B3208
analogous
#0A0832 #1F0832 #320830
triadic
#1F0832 #321F08 #08321F
tetradic
#1F0832 #320A08 #1B3208 #083032
square
#1F0832 #320A08 #1B3208 #083032
split-complementary
#1F0832 #303208 #08320A
monochromatic
#10041A #10041A #1F0832 #401067 #60199C

Accessibility & contrast

On white

18.44
#1F0832 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1F0832 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0832
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0832#FFFFFF#000000##FFFFFF
##1F08321.0018.441.1418.44
#FFFFFF18.441.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001333
Deuteranopia (green-blind)
#001431
Tritanopia (blue-blind)
#1C121C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0832;
/* rgb */ color: rgb(31, 8, 50);
/* oklch */ color: oklch(20.1% 0.079 305.4);
Tailwind
colors: {
  custom: {
    50: '#5d4a6a',
    500: '#1f0832',
    950: '#000000',
  },
}
SCSS
$custom: #1f0832;
$custom-light: #5d4a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0832",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 50
  },
  "hsl": {
    "h": 272.857,
    "s": 72.414,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20057,
    "c": 0.07948,
    "h": 305.4
  },
  "luminance": 0.00695
}

Semantic roles & 50–950 ramp

primary
#1F0832
secondary
#477125
accent
#EF398B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F0832

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

Preview Lab → · Contrast checker → · Palette generator →

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