#1F0940#1F0940

#1F0940 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.096 H 295.3°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#1F0940
RGBrgb(31, 9, 64)
HSLhsl(264, 75%, 14%)
HSVhsv(264, 86%, 25%)
CMYKcmyk(51.6%, 85.9%, 0%, 74.9%)
CIE-LABlab(7.74, 25.49, -30.36)
CIE-LCHlch(7.74, 39.64, 310.02°)
OKLaboklab(21.61% 0.0411 -0.087)
OKLCHoklch(21.61% 0.096 295.3)
XYZxyz(1.5879, 0.8568, 4.9312)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0940 #2A4009
analogous
#090F40 #1F0940 #3B0940
triadic
#1F0940 #401F09 #09401F
tetradic
#1F0940 #40090F #2A4009 #09403B
square
#1F0940 #40090F #2A4009 #09403B
split-complementary
#1F0940 #403B09 #0F4009
monochromatic
#0D041B #0D041B #1F0940 #391176 #5318AB

Accessibility & contrast

On white

17.93
#1F0940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0940
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0940#FFFFFF#000000##FFFFFF
##1F09401.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#161824
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f0940;
/* rgb */ color: rgb(31, 9, 64);
/* oklch */ color: oklch(21.6% 0.096 295.3);
Tailwind
colors: {
  custom: {
    50: '#5f4b75',
    500: '#1f0940',
    950: '#000000',
  },
}
SCSS
$custom: #1f0940;
$custom-light: #5f4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0940",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 264,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21614,
    "c": 0.09622,
    "h": 295.3
  },
  "luminance": 0.00857
}

Semantic roles & 50–950 ramp

primary
#1F0940
secondary
#5B7E27
accent
#F236A7
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0940

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

Preview Lab → · Contrast checker → · Palette generator →

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