#1F0841#1F0841

#1F0841 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.6% C 0.099 H 295.0°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#1F0841
RGBrgb(31, 8, 65)
HSLhsl(264, 78%, 14%)
HSVhsv(264, 88%, 25%)
CMYKcmyk(52.3%, 87.7%, 0%, 74.5%)
CIE-LABlab(7.65, 26.37, -31.22)
CIE-LCHlch(7.65, 40.87, 310.18°)
OKLaboklab(21.58% 0.0418 -0.0895)
OKLCHoklch(21.58% 0.099 295)
XYZxyz(1.6058, 0.8466, 5.0788)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0841 #2A4108
analogous
#080D41 #1F0841 #3C0841
triadic
#1F0841 #411F08 #08411F
tetradic
#1F0841 #41080D #2A4108 #08413C
square
#1F0841 #41080D #2A4108 #08413C
split-complementary
#1F0841 #413C08 #0D4108
monochromatic
#0D031B #0D031B #1F0841 #390F77 #5315AE

Accessibility & contrast

On white

17.96
#1F0841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0841
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0841#FFFFFF#000000##FFFFFF
##1F08411.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0841;
/* rgb */ color: rgb(31, 8, 65);
/* oklch */ color: oklch(21.6% 0.099 295.0);
Tailwind
colors: {
  custom: {
    50: '#5f4a76',
    500: '#1f0841',
    950: '#000000',
  },
}
SCSS
$custom: #1f0841;
$custom-light: #5f4a76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0841",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 264.211,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2158,
    "c": 0.09883,
    "h": 295
  },
  "luminance": 0.00847
}

Semantic roles & 50–950 ramp

primary
#1F0841
secondary
#5B7F25
accent
#F533A7
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0841

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

Preview Lab → · Contrast checker → · Palette generator →

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