#1F0735#1F0735

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

Color values

HEX#1F0735
RGBrgb(31, 7, 53)
HSLhsl(271, 77%, 12%)
HSVhsv(271, 87%, 21%)
CMYKcmyk(41.5%, 86.8%, 0%, 79.2%)
CIE-LABlab(6.33, 22.83, -24.70)
CIE-LCHlch(6.33, 33.64, 312.75°)
OKLaboklab(20.18% 0.0468 -0.071)
OKLCHoklch(20.18% 0.085 303.4)
XYZxyz(1.2835, 0.7003, 3.4350)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0735 #1D3507
analogous
#080735 #1F0735 #350734
triadic
#1F0735 #351F07 #07351F
tetradic
#1F0735 #350807 #1D3507 #073435
square
#1F0735 #350807 #1D3507 #073435
split-complementary
#1F0735 #343507 #073508
monochromatic
#10041B #10041B #1F0735 #3F0E6B #5E15A1

Accessibility & contrast

On white

18.42
#1F0735 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0735
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0735#FFFFFF#000000##FFFFFF
##1F07351.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0735;
/* rgb */ color: rgb(31, 7, 53);
/* oklch */ color: oklch(20.2% 0.085 303.4);
Tailwind
colors: {
  custom: {
    50: '#5d496d',
    500: '#1f0735',
    950: '#000000',
  },
}
SCSS
$custom: #1f0735;
$custom-light: #5d496d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0735",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 53
  },
  "hsl": {
    "h": 271.304,
    "s": 76.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20183,
    "c": 0.08505,
    "h": 303.4
  },
  "luminance": 0.007
}

Semantic roles & 50–950 ramp

primary
#1F0735
secondary
#4A7523
accent
#F33590
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0735

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

Preview Lab → · Contrast checker → · Palette generator →

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