#1F0834#1F0834

#1F0834 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.082 H 303.7°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#1F0834
RGBrgb(31, 8, 52)
HSLhsl(271, 73%, 12%)
HSVhsv(271, 85%, 20%)
CMYKcmyk(40.4%, 84.6%, 0%, 79.6%)
CIE-LABlab(6.44, 21.98, -23.79)
CIE-LCHlch(6.44, 32.38, 312.73°)
OKLaboklab(20.25% 0.0456 -0.0683)
OKLCHoklch(20.25% 0.082 303.7)
XYZxyz(1.2716, 0.7129, 3.3188)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0834 #1D3408
analogous
#090834 #1F0834 #340833
triadic
#1F0834 #341F08 #08341F
tetradic
#1F0834 #340908 #1D3408 #083334
square
#1F0834 #340908 #1D3408 #083334
split-complementary
#1F0834 #333408 #083409
monochromatic
#10041B #10041B #1F0834 #3F1069 #5E189E

Accessibility & contrast

On white

18.38
#1F0834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0834
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0834#FFFFFF#000000##FFFFFF
##1F08341.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001435
Deuteranopia (green-blind)
#001433
Tritanopia (blue-blind)
#1B121D
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0834;
/* rgb */ color: rgb(31, 8, 52);
/* oklch */ color: oklch(20.2% 0.082 303.7);
Tailwind
colors: {
  custom: {
    50: '#5d4a6c',
    500: '#1f0834',
    950: '#000000',
  },
}
SCSS
$custom: #1f0834;
$custom-light: #5d4a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0834",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 52
  },
  "hsl": {
    "h": 271.364,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20247,
    "c": 0.08208,
    "h": 303.7
  },
  "luminance": 0.00713
}

Semantic roles & 50–950 ramp

primary
#1F0834
secondary
#4A7325
accent
#F03890
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0834

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

Preview Lab → · Contrast checker → · Palette generator →

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