#1F0846#1F0846

#1F0846 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.105 H 292.4°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#1F0846
RGBrgb(31, 8, 70)
HSLhsl(262, 79%, 15%)
HSVhsv(262, 89%, 27%)
CMYKcmyk(55.7%, 88.6%, 0%, 72.5%)
CIE-LABlab(8.19, 27.93, -33.87)
CIE-LCHlch(8.19, 43.90, 309.51°)
OKLaboklab(22.13% 0.04 -0.0973)
OKLCHoklch(22.13% 0.105 292.4)
XYZxyz(1.7571, 0.9071, 5.8757)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0846 #2F4608
analogous
#081046 #1F0846 #3E0846
triadic
#1F0846 #461F08 #08461F
tetradic
#1F0846 #460810 #2F4608 #08463E
square
#1F0846 #460810 #2F4608 #08463E
split-complementary
#1F0846 #463E08 #104608
monochromatic
#0C031B #0C031B #1F0846 #370E7D #5015B4

Accessibility & contrast

On white

17.78
#1F0846 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0846
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0846#FFFFFF#000000##FFFFFF
##1F08461.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001745
Tritanopia (blue-blind)
#121A27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0846;
/* rgb */ color: rgb(31, 8, 70);
/* oklch */ color: oklch(22.1% 0.105 292.4);
Tailwind
colors: {
  custom: {
    50: '#604a7a',
    500: '#1f0846',
    950: '#000000',
  },
}
SCSS
$custom: #1f0846;
$custom-light: #604a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0846",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 70
  },
  "hsl": {
    "h": 262.258,
    "s": 79.487,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22131,
    "c": 0.10517,
    "h": 292.4
  },
  "luminance": 0.00907
}

Semantic roles & 50–950 ramp

primary
#1F0846
secondary
#618426
accent
#F632AD
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0846

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

Preview Lab → · Contrast checker → · Palette generator →

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