#1F0D4F#1F0D4F

#1F0D4F is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.111 H 287.0°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#1F0D4F
RGBrgb(31, 13, 79)
HSLhsl(256, 72%, 18%)
HSVhsv(256, 84%, 31%)
CMYKcmyk(60.8%, 83.5%, 0%, 69%)
CIE-LABlab(10.13, 28.09, -36.94)
CIE-LCHlch(10.13, 46.41, 307.25°)
OKLaboklab(23.79% 0.0326 -0.1063)
OKLCHoklch(23.79% 0.111 287)
XYZxyz(2.1199, 1.1436, 7.5046)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D4F #3D4F0D
analogous
#0D1C4F #1F0D4F #400D4F
triadic
#1F0D4F #4F1F0D #0D4F1F
tetradic
#1F0D4F #4F0D1C #3D4F0D #0D4F40
square
#1F0D4F #4F0D1C #3D4F0D #0D4F40
split-complementary
#1F0D4F #4F400D #1C4F0D
monochromatic
#0A041A #0A041A #1F0D4F #341684 #481EB8

Accessibility & contrast

On white

17.09
#1F0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1F0D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0D4F
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D4F#FFFFFF#000000##FFFFFF
##1F0D4F1.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D51
Deuteranopia (green-blind)
#001A4E
Tritanopia (blue-blind)
#0A202D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0d4f;
/* rgb */ color: rgb(31, 13, 79);
/* oklch */ color: oklch(23.8% 0.111 287.0);
Tailwind
colors: {
  custom: {
    50: '#624e81',
    500: '#1f0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d4f;
$custom-light: #624e81;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d4f",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 256.364,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23789,
    "c": 0.11119,
    "h": 287
  },
  "luminance": 0.01144
}

Semantic roles & 50–950 ramp

primary
#1F0D4F
secondary
#718A2E
accent
#EE39BD
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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