#1F0941#1F0941

#1F0941 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.098 H 294.7°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#1F0941
RGBrgb(31, 9, 65)
HSLhsl(264, 76%, 15%)
HSVhsv(264, 86%, 25%)
CMYKcmyk(52.3%, 86.2%, 0%, 74.5%)
CIE-LABlab(7.84, 25.81, -30.90)
CIE-LCHlch(7.84, 40.26, 309.87°)
OKLaboklab(21.72% 0.0408 -0.0886)
OKLCHoklch(21.72% 0.098 294.7)
XYZxyz(1.6166, 0.8683, 5.0824)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0941 #2B4109
analogous
#090F41 #1F0941 #3B0941
triadic
#1F0941 #411F09 #09411F
tetradic
#1F0941 #41090F #2B4109 #09413B
square
#1F0941 #41090F #2B4109 #09413B
split-complementary
#1F0941 #413B09 #0F4109
monochromatic
#0D041B #0D041B #1F0941 #391077 #5218AD

Accessibility & contrast

On white

17.89
#1F0941 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1F0941 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0941
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0941#FFFFFF#000000##FFFFFF
##1F09411.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001640
Tritanopia (blue-blind)
#151824
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f0941;
/* rgb */ color: rgb(31, 9, 65);
/* oklch */ color: oklch(21.7% 0.098 294.7);
Tailwind
colors: {
  custom: {
    50: '#5f4b76',
    500: '#1f0941',
    950: '#000000',
  },
}
SCSS
$custom: #1f0941;
$custom-light: #5f4b76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0941",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 65
  },
  "hsl": {
    "h": 263.571,
    "s": 75.676,
    "l": 14.51
  },
  "oklch": {
    "l": 0.2172,
    "c": 0.09752,
    "h": 294.7
  },
  "luminance": 0.00868
}

Semantic roles & 50–950 ramp

primary
#1F0941
secondary
#5C7F27
accent
#F236A8
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0941

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

Preview Lab → · Contrast checker → · Palette generator →

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