#1F0837#1F0837

#1F0837 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.086 H 301.5°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#1F0837
RGBrgb(31, 8, 55)
HSLhsl(269, 75%, 12%)
HSVhsv(269, 85%, 22%)
CMYKcmyk(43.6%, 85.5%, 0%, 78.4%)
CIE-LABlab(6.69, 23.02, -25.58)
CIE-LCHlch(6.69, 34.41, 311.99°)
OKLaboklab(20.54% 0.0449 -0.0733)
OKLCHoklch(20.54% 0.086 301.5)
XYZxyz(1.3413, 0.7408, 3.6860)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0837 #203708
analogous
#080837 #1F0837 #370837
triadic
#1F0837 #371F08 #08371F
tetradic
#1F0837 #370808 #203708 #083737
square
#1F0837 #370808 #203708 #083737
split-complementary
#1F0837 #373708 #083708
monochromatic
#0F041B #0F041B #1F0837 #3D106C #5B18A2

Accessibility & contrast

On white

18.29
#1F0837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0837
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0837#FFFFFF#000000##FFFFFF
##1F08371.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.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: #1f0837;
/* rgb */ color: rgb(31, 8, 55);
/* oklch */ color: oklch(20.5% 0.086 301.5);
Tailwind
colors: {
  custom: {
    50: '#5d4a6e',
    500: '#1f0837',
    950: '#000000',
  },
}
SCSS
$custom: #1f0837;
$custom-light: #5d4a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0837",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 269.362,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.2054,
    "c": 0.08598,
    "h": 301.5
  },
  "luminance": 0.00741
}

Semantic roles & 50–950 ramp

primary
#1F0837
secondary
#4E7625
accent
#F13796
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0837

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

Preview Lab → · Contrast checker → · Palette generator →

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