#1F0539#1F0539

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

Color values

HEX#1F0539
RGBrgb(31, 5, 57)
HSLhsl(270, 84%, 12%)
HSVhsv(270, 91%, 22%)
CMYKcmyk(45.6%, 91.2%, 0%, 77.6%)
CIE-LABlab(6.28, 25.28, -27.70)
CIE-LCHlch(6.28, 37.50, 312.39°)
OKLaboklab(20.27% 0.0483 -0.0798)
OKLCHoklch(20.27% 0.093 301.2)
XYZxyz(1.3577, 0.6952, 3.9328)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0539 #1F3905
analogous
#050539 #1F0539 #390539
triadic
#1F0539 #391F05 #05391F
tetradic
#1F0539 #390505 #1F3905 #053939
square
#1F0539 #390505 #1F3905 #053939
split-complementary
#1F0539 #393905 #053905
monochromatic
#0F021C #0F021C #1F0539 #3E0A71 #5C0FAA

Accessibility & contrast

On white

18.44
#1F0539 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0539
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0539#FFFFFF#000000##FFFFFF
##1F05391.0018.441.1418.44
#FFFFFF18.441.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143A
Deuteranopia (green-blind)
#001438
Tritanopia (blue-blind)
#19131F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0539;
/* rgb */ color: rgb(31, 5, 57);
/* oklch */ color: oklch(20.3% 0.093 301.2);
Tailwind
colors: {
  custom: {
    50: '#5e4870',
    500: '#1f0539',
    950: '#000000',
  },
}
SCSS
$custom: #1f0539;
$custom-light: #5e4870;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0539",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 57
  },
  "hsl": {
    "h": 270,
    "s": 83.871,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20272,
    "c": 0.09331,
    "h": 301.2
  },
  "luminance": 0.00695
}

Semantic roles & 50–950 ramp

primary
#1F0539
secondary
#4D7A20
accent
#FA2E94
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #1F0539

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

Preview Lab → · Contrast checker → · Palette generator →

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