#1F0D4B#1F0D4B

#1F0D4B is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.106 H 288.6°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#1F0D4B
RGBrgb(31, 13, 75)
HSLhsl(257, 70%, 17%)
HSVhsv(257, 83%, 29%)
CMYKcmyk(58.7%, 82.7%, 0%, 70.6%)
CIE-LABlab(9.70, 26.78, -34.89)
CIE-LCHlch(9.70, 43.99, 307.51°)
OKLaboklab(23.35% 0.0338 -0.1003)
OKLCHoklch(23.35% 0.106 288.6)
XYZxyz(1.9786, 1.0871, 6.7608)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D4B #394B0D
analogous
#0D1A4B #1F0D4B #3E0D4B
triadic
#1F0D4B #4B1F0D #0D4B1F
tetradic
#1F0D4B #4B0D1A #394B0D #0D4B3E
square
#1F0D4B #4B0D1A #394B0D #0D4B3E
split-complementary
#1F0D4B #4B3E0D #1A4B0D
monochromatic
#0B051A #0B051A #1F0D4B #35167F #4A1FB3

Accessibility & contrast

On white

17.25
#1F0D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0D4B
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D4B#FFFFFF#000000##FFFFFF
##1F0D4B1.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4D
Deuteranopia (green-blind)
#00194A
Tritanopia (blue-blind)
#0E1E2B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0d4b;
/* rgb */ color: rgb(31, 13, 75);
/* oklch */ color: oklch(23.3% 0.106 288.6);
Tailwind
colors: {
  custom: {
    50: '#614e7e',
    500: '#1f0d4b',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d4b;
$custom-light: #614e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d4b",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 75
  },
  "hsl": {
    "h": 257.419,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.23349,
    "c": 0.10586,
    "h": 288.6
  },
  "luminance": 0.01087
}

Semantic roles & 50–950 ramp

primary
#1F0D4B
secondary
#6C862E
accent
#ED3BB9
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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