#1F0939#1F0939

#1F0939 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.087 H 299.7°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#1F0939
RGBrgb(31, 9, 57)
HSLhsl(268, 73%, 13%)
HSVhsv(268, 84%, 22%)
CMYKcmyk(45.6%, 84.2%, 0%, 77.6%)
CIE-LABlab(7.06, 23.18, -26.43)
CIE-LCHlch(7.06, 35.15, 311.26°)
OKLaboklab(20.89% 0.0431 -0.0756)
OKLCHoklch(20.89% 0.087 299.7)
XYZxyz(1.4011, 0.7821, 3.9472)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0939 #233909
analogous
#090B39 #1F0939 #370939
triadic
#1F0939 #391F09 #09391F
tetradic
#1F0939 #39090B #233909 #093937
square
#1F0939 #39090B #233909 #093937
split-complementary
#1F0939 #393709 #0B3909
monochromatic
#0E041A #0E041A #1F0939 #3C116E #581AA3

Accessibility & contrast

On white

18.16
#1F0939 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1F0939 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0939
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0939#FFFFFF#000000##FFFFFF
##1F09391.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163A
Deuteranopia (green-blind)
#001538
Tritanopia (blue-blind)
#191520
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f0939;
/* rgb */ color: rgb(31, 9, 57);
/* oklch */ color: oklch(20.9% 0.087 299.7);
Tailwind
colors: {
  custom: {
    50: '#5e4a70',
    500: '#1f0939',
    950: '#000000',
  },
}
SCSS
$custom: #1f0939;
$custom-light: #5e4a70;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0939",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 57
  },
  "hsl": {
    "h": 267.5,
    "s": 72.727,
    "l": 12.941
  },
  "oklch": {
    "l": 0.20893,
    "c": 0.08706,
    "h": 299.7
  },
  "luminance": 0.00782
}

Semantic roles & 50–950 ramp

primary
#1F0939
secondary
#527727
accent
#EF389C
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0939

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

Preview Lab → · Contrast checker → · Palette generator →

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