#1F0E41#1F0E41

#1F0E41 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.091 H 292.9°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#1F0E41
RGBrgb(31, 14, 65)
HSLhsl(260, 65%, 15%)
HSVhsv(260, 78%, 25%)
CMYKcmyk(52.3%, 78.5%, 0%, 74.5%)
CIE-LABlab(8.88, 22.89, -29.20)
CIE-LCHlch(8.88, 37.10, 308.09°)
OKLaboklab(22.46% 0.0353 -0.0836)
OKLCHoklch(22.46% 0.091 292.9)
XYZxyz(1.6760, 0.9870, 5.1022)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E41 #30410E
analogous
#0E1641 #1F0E41 #380E41
triadic
#1F0E41 #411F0E #0E411F
tetradic
#1F0E41 #410E16 #30410E #0E4138
square
#1F0E41 #410E16 #30410E #0E4138
split-complementary
#1F0E41 #41380E #16410E
monochromatic
#0C0519 #0C0519 #1F0E41 #371973 #4F24A6

Accessibility & contrast

On white

17.54
#1F0E41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1F0E41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0E41
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E41#FFFFFF#000000##FFFFFF
##1F0E411.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#001840
Tritanopia (blue-blind)
#151B26
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0e41;
/* rgb */ color: rgb(31, 14, 65);
/* oklch */ color: oklch(22.5% 0.091 292.9);
Tailwind
colors: {
  custom: {
    50: '#5f4e76',
    500: '#1f0e41',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e41;
$custom-light: #5f4e76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e41",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 65
  },
  "hsl": {
    "h": 260,
    "s": 64.557,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22456,
    "c": 0.0908,
    "h": 292.9
  },
  "luminance": 0.00987
}

Semantic roles & 50–950 ramp

primary
#1F0E41
secondary
#627C2F
accent
#E840B0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0E41

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

Preview Lab → · Contrast checker → · Palette generator →

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