#1F0339#1F0339

#1F0339 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.097 H 301.9°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#1F0339
RGBrgb(31, 3, 57)
HSLhsl(271, 90%, 12%)
HSVhsv(271, 95%, 22%)
CMYKcmyk(45.6%, 94.7%, 0%, 77.6%)
CIE-LABlab(5.89, 26.32, -28.33)
CIE-LCHlch(5.89, 38.68, 312.90°)
OKLaboklab(19.95% 0.0511 -0.0821)
OKLCHoklch(19.95% 0.097 301.9)
XYZxyz(1.3360, 0.6518, 3.9255)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0339 #1D3903
analogous
#040339 #1F0339 #390338
triadic
#1F0339 #391F03 #03391F
tetradic
#1F0339 #390403 #1D3903 #033839
square
#1F0339 #390403 #1D3903 #033839
split-complementary
#1F0339 #383903 #033904
monochromatic
#10021D #10021D #1F0339 #3F0673 #5E09AD

Accessibility & contrast

On white

18.58
#1F0339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0339
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0339#FFFFFF#000000##FFFFFF
##1F03391.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0339;
/* rgb */ color: rgb(31, 3, 57);
/* oklch */ color: oklch(19.9% 0.097 301.9);
Tailwind
colors: {
  custom: {
    50: '#5e4770',
    500: '#1f0339',
    950: '#000000',
  },
}
SCSS
$custom: #1f0339;
$custom-light: #5e4770;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0339",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 271.111,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.19946,
    "c": 0.09668,
    "h": 301.9
  },
  "luminance": 0.00652
}

Semantic roles & 50–950 ramp

primary
#1F0339
secondary
#4A7C1C
accent
#FF2990
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #1F0339

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

Preview Lab → · Contrast checker → · Palette generator →

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