#1F0D46#1F0D46

#1F0D46 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.099 H 290.8°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#1F0D46
RGBrgb(31, 13, 70)
HSLhsl(259, 69%, 16%)
HSVhsv(259, 81%, 27%)
CMYKcmyk(55.7%, 81.4%, 0%, 72.5%)
CIE-LABlab(9.17, 25.14, -32.27)
CIE-LCHlch(9.17, 40.91, 307.93°)
OKLaboklab(22.81% 0.0352 -0.0926)
OKLCHoklch(22.81% 0.099 290.8)
XYZxyz(1.8142, 1.0213, 5.8947)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D46 #34460D
analogous
#0D1846 #1F0D46 #3C0D46
triadic
#1F0D46 #461F0D #0D461F
tetradic
#1F0D46 #460D18 #34460D #0D463C
square
#1F0D46 #460D18 #34460D #0D463C
split-complementary
#1F0D46 #463C0D #18460D
monochromatic
#0B051A #0B051A #1F0D46 #36177A #4D20AD

Accessibility & contrast

On white

17.44
#1F0D46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0D46
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D46#FFFFFF#000000##FFFFFF
##1F0D461.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001945
Tritanopia (blue-blind)
#121C28
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0d46;
/* rgb */ color: rgb(31, 13, 70);
/* oklch */ color: oklch(22.8% 0.099 290.8);
Tailwind
colors: {
  custom: {
    50: '#604d7a',
    500: '#1f0d46',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d46;
$custom-light: #604d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d46",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 70
  },
  "hsl": {
    "h": 258.947,
    "s": 68.675,
    "l": 16.275
  },
  "oklch": {
    "l": 0.22814,
    "c": 0.0991,
    "h": 290.8
  },
  "luminance": 0.01021
}

Semantic roles & 50–950 ramp

primary
#1F0D46
secondary
#67812D
accent
#EC3CB4
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0D46

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

Preview Lab → · Contrast checker → · Palette generator →

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