#1F0736#1F0736

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

Color values

HEX#1F0736
RGBrgb(31, 7, 54)
HSLhsl(271, 77%, 12%)
HSVhsv(271, 87%, 21%)
CMYKcmyk(42.6%, 87%, 0%, 78.8%)
CIE-LABlab(6.41, 23.19, -25.30)
CIE-LCHlch(6.41, 34.32, 312.50°)
OKLaboklab(20.28% 0.0465 -0.0727)
OKLCHoklch(20.28% 0.086 302.6)
XYZxyz(1.3067, 0.7096, 3.5574)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0736 #1E3607
analogous
#070736 #1F0736 #360736
triadic
#1F0736 #361F07 #07361F
tetradic
#1F0736 #360707 #1E3607 #073636
square
#1F0736 #360707 #1E3607 #073636
split-complementary
#1F0736 #363607 #073607
monochromatic
#10041B #10041B #1F0736 #3E0E6C #5D15A2

Accessibility & contrast

On white

18.39
#1F0736 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0736
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0736#FFFFFF#000000##FFFFFF
##1F07361.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0736;
/* rgb */ color: rgb(31, 7, 54);
/* oklch */ color: oklch(20.3% 0.086 302.6);
Tailwind
colors: {
  custom: {
    50: '#5d496d',
    500: '#1f0736',
    950: '#000000',
  },
}
SCSS
$custom: #1f0736;
$custom-light: #5d496d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0736",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 54
  },
  "hsl": {
    "h": 270.638,
    "s": 77.049,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20283,
    "c": 0.08631,
    "h": 302.6
  },
  "luminance": 0.0071
}

Semantic roles & 50–950 ramp

primary
#1F0736
secondary
#4C7623
accent
#F43492
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0736

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

Preview Lab → · Contrast checker → · Palette generator →

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