#1F0D4D#1F0D4D

#1F0D4D is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.109 H 287.8°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#1F0D4D
RGBrgb(31, 13, 77)
HSLhsl(257, 71%, 18%)
HSVhsv(257, 83%, 30%)
CMYKcmyk(59.7%, 83.1%, 0%, 69.8%)
CIE-LABlab(9.91, 27.44, -35.92)
CIE-LCHlch(9.91, 45.20, 307.38°)
OKLaboklab(23.57% 0.0332 -0.1033)
OKLCHoklch(23.57% 0.109 287.8)
XYZxyz(2.0482, 1.1149, 7.1270)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D4D #3B4D0D
analogous
#0D1B4D #1F0D4D #3F0D4D
triadic
#1F0D4D #4D1F0D #0D4D1F
tetradic
#1F0D4D #4D0D1B #3B4D0D #0D4D3F
square
#1F0D4D #4D0D1B #3B4D0D #0D4D3F
split-complementary
#1F0D4D #4D3F0D #1B4D0D
monochromatic
#0B041A #0B041A #1F0D4D #341681 #491FB6

Accessibility & contrast

On white

17.17
#1F0D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1F0D4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0D4D
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D4D#FFFFFF#000000##FFFFFF
##1F0D4D1.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4F
Deuteranopia (green-blind)
#001A4C
Tritanopia (blue-blind)
#0C1F2C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0d4d;
/* rgb */ color: rgb(31, 13, 77);
/* oklch */ color: oklch(23.6% 0.109 287.8);
Tailwind
colors: {
  custom: {
    50: '#614e80',
    500: '#1f0d4d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d4d;
$custom-light: #614e80;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d4d",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 77
  },
  "hsl": {
    "h": 256.875,
    "s": 71.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23568,
    "c": 0.10854,
    "h": 287.8
  },
  "luminance": 0.01115
}

Semantic roles & 50–950 ramp

primary
#1F0D4D
secondary
#6F882E
accent
#EE3ABB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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