#1F0439#1F0439

#1F0439 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.095 H 301.5°. Best body text is #FFFFFF at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#1F0439
RGBrgb(31, 4, 57)
HSLhsl(271, 87%, 12%)
HSVhsv(271, 93%, 22%)
CMYKcmyk(45.6%, 93%, 0%, 77.6%)
CIE-LABlab(6.08, 25.80, -28.02)
CIE-LCHlch(6.08, 38.09, 312.65°)
OKLaboklab(20.11% 0.0497 -0.0809)
OKLCHoklch(20.11% 0.095 301.5)
XYZxyz(1.3468, 0.6735, 3.9292)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0439 #1E3904
analogous
#050439 #1F0439 #390439
triadic
#1F0439 #391F04 #04391F
tetradic
#1F0439 #390504 #1E3904 #043939
square
#1F0439 #390504 #1E3904 #043939
split-complementary
#1F0439 #393904 #043905
monochromatic
#10021D #10021D #1F0439 #3E0872 #5D0CAB

Accessibility & contrast

On white

18.51
#1F0439 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0439
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0439#FFFFFF#000000##FFFFFF
##1F04391.0018.511.1318.51
#FFFFFF18.511.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133A
Deuteranopia (green-blind)
#001338
Tritanopia (blue-blind)
#19121E
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f0439;
/* rgb */ color: rgb(31, 4, 57);
/* oklch */ color: oklch(20.1% 0.095 301.5);
Tailwind
colors: {
  custom: {
    50: '#5e4870',
    500: '#1f0439',
    950: '#000000',
  },
}
SCSS
$custom: #1f0439;
$custom-light: #5e4870;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0439",
  "rgb": {
    "r": 31,
    "g": 4,
    "b": 57
  },
  "hsl": {
    "h": 270.566,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.2011,
    "c": 0.09497,
    "h": 301.5
  },
  "luminance": 0.00674
}

Semantic roles & 50–950 ramp

primary
#1F0439
secondary
#4C7B1E
accent
#FD2B92
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #1F0439

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

Preview Lab → · Contrast checker → · Palette generator →

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