#1F0D4A#1F0D4A

#1F0D4A is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.105 H 289.0°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#1F0D4A
RGBrgb(31, 13, 74)
HSLhsl(258, 70%, 17%)
HSVhsv(258, 82%, 29%)
CMYKcmyk(58.1%, 82.4%, 0%, 71%)
CIE-LABlab(9.59, 26.46, -34.37)
CIE-LCHlch(9.59, 43.38, 307.58°)
OKLaboklab(23.24% 0.0341 -0.0988)
OKLCHoklch(23.24% 0.105 289)
XYZxyz(1.9447, 1.0735, 6.5820)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D4A #384A0D
analogous
#0D1A4A #1F0D4A #3E0D4A
triadic
#1F0D4A #4A1F0D #0D4A1F
tetradic
#1F0D4A #4A0D1A #384A0D #0D4A3E
square
#1F0D4A #4A0D1A #384A0D #0D4A3E
split-complementary
#1F0D4A #4A3E0D #1A4A0D
monochromatic
#0B051A #0B051A #1F0D4A #35167E #4B1FB2

Accessibility & contrast

On white

17.29
#1F0D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1F0D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0D4A
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D4A#FFFFFF#000000##FFFFFF
##1F0D4A1.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4C
Deuteranopia (green-blind)
#001949
Tritanopia (blue-blind)
#0F1E2B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0d4a;
/* rgb */ color: rgb(31, 13, 74);
/* oklch */ color: oklch(23.2% 0.105 289.0);
Tailwind
colors: {
  custom: {
    50: '#614e7d',
    500: '#1f0d4a',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d4a;
$custom-light: #614e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d4a",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 257.705,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23241,
    "c": 0.10452,
    "h": 289
  },
  "luminance": 0.01074
}

Semantic roles & 50–950 ramp

primary
#1F0D4A
secondary
#6B852E
accent
#ED3BB8
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1F0D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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