#1F0737#1F0737

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

Color values

HEX#1F0737
RGBrgb(31, 7, 55)
HSLhsl(270, 77%, 12%)
HSVhsv(270, 87%, 22%)
CMYKcmyk(43.6%, 87.3%, 0%, 78.4%)
CIE-LABlab(6.50, 23.54, -25.89)
CIE-LCHlch(6.50, 34.99, 312.27°)
OKLaboklab(20.38% 0.0462 -0.0744)
OKLCHoklch(20.38% 0.088 301.8)
XYZxyz(1.3305, 0.7191, 3.6824)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0737 #1F3707
analogous
#070737 #1F0737 #370737
triadic
#1F0737 #371F07 #07371F
tetradic
#1F0737 #370707 #1F3707 #073737
square
#1F0737 #370707 #1F3707 #073737
split-complementary
#1F0737 #373707 #073707
monochromatic
#0F031B #0F031B #1F0737 #3E0E6D #5C15A4

Accessibility & contrast

On white

18.36
#1F0737 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0737
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0737#FFFFFF#000000##FFFFFF
##1F07371.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001438
Deuteranopia (green-blind)
#001436
Tritanopia (blue-blind)
#1A131E
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0737;
/* rgb */ color: rgb(31, 7, 55);
/* oklch */ color: oklch(20.4% 0.088 301.8);
Tailwind
colors: {
  custom: {
    50: '#5e496e',
    500: '#1f0737',
    950: '#000000',
  },
}
SCSS
$custom: #1f0737;
$custom-light: #5e496e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0737",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 55
  },
  "hsl": {
    "h": 270,
    "s": 77.419,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20383,
    "c": 0.08758,
    "h": 301.8
  },
  "luminance": 0.00719
}

Semantic roles & 50–950 ramp

primary
#1F0737
secondary
#4D7723
accent
#F43494
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0737

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

Preview Lab → · Contrast checker → · Palette generator →

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