#1F0A41#1F0A41

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

Color values

HEX#1F0A41
RGBrgb(31, 10, 65)
HSLhsl(263, 73%, 15%)
HSVhsv(263, 85%, 25%)
CMYKcmyk(52.3%, 84.6%, 0%, 74.5%)
CIE-LABlab(8.04, 25.26, -30.58)
CIE-LCHlch(8.04, 39.66, 309.55°)
OKLaboklab(21.86% 0.0397 -0.0877)
OKLCHoklch(21.86% 0.096 294.4)
XYZxyz(1.6275, 0.8900, 5.0860)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0A41 #2C410A
analogous
#0A1141 #1F0A41 #3B0A41
triadic
#1F0A41 #411F0A #0A411F
tetradic
#1F0A41 #410A11 #2C410A #0A413B
square
#1F0A41 #410A11 #2C410A #0A413B
split-complementary
#1F0A41 #413B0A #11410A
monochromatic
#0D041B #0D041B #1F0A41 #381276 #521AAB

Accessibility & contrast

On white

17.83
#1F0A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1F0A41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0A41
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0A41#FFFFFF#000000##FFFFFF
##1F0A411.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001740
Tritanopia (blue-blind)
#151925
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0a41;
/* rgb */ color: rgb(31, 10, 65);
/* oklch */ color: oklch(21.9% 0.096 294.4);
Tailwind
colors: {
  custom: {
    50: '#5f4b76',
    500: '#1f0a41',
    950: '#000000',
  },
}
SCSS
$custom: #1f0a41;
$custom-light: #5f4b76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0a41",
  "rgb": {
    "r": 31,
    "g": 10,
    "b": 65
  },
  "hsl": {
    "h": 262.909,
    "s": 73.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21859,
    "c": 0.09624,
    "h": 294.4
  },
  "luminance": 0.0089
}

Semantic roles & 50–950 ramp

primary
#1F0A41
secondary
#5E7E29
accent
#F038AA
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0A41

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

Preview Lab → · Contrast checker → · Palette generator →

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