#1F0730#1F0730

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

Color values

HEX#1F0730
RGBrgb(31, 7, 48)
HSLhsl(275, 75%, 11%)
HSVhsv(275, 85%, 19%)
CMYKcmyk(35.4%, 85.4%, 0%, 81.2%)
CIE-LABlab(5.93, 21.06, -21.64)
CIE-LCHlch(5.93, 30.20, 314.22°)
OKLaboklab(19.7% 0.0479 -0.0624)
OKLCHoklch(19.7% 0.079 307.5)
XYZxyz(1.1744, 0.6567, 2.8606)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0730 #183007
analogous
#0A0730 #1F0730 #30072C
triadic
#1F0730 #301F07 #07301F
tetradic
#1F0730 #300A07 #183007 #072C30
square
#1F0730 #300A07 #183007 #072C30
split-complementary
#1F0730 #2C3007 #07300A
monochromatic
#11041B #11041B #1F0730 #410F65 #64179B

Accessibility & contrast

On white

18.56
#1F0730 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1F0730 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0730
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0730#FFFFFF#000000##FFFFFF
##1F07301.0018.561.1318.56
#FFFFFF18.561.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001231
Deuteranopia (green-blind)
#00132F
Tritanopia (blue-blind)
#1C101A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f0730;
/* rgb */ color: rgb(31, 7, 48);
/* oklch */ color: oklch(19.7% 0.079 307.5);
Tailwind
colors: {
  custom: {
    50: '#5c4968',
    500: '#1f0730',
    950: '#000000',
  },
}
SCSS
$custom: #1f0730;
$custom-light: #5c4968;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0730",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 48
  },
  "hsl": {
    "h": 275.122,
    "s": 74.545,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19702,
    "c": 0.07869,
    "h": 307.5
  },
  "luminance": 0.00657
}

Semantic roles & 50–950 ramp

primary
#1F0730
secondary
#437023
accent
#F13784
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F0730

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

Preview Lab → · Contrast checker → · Palette generator →

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