#1F0D4C#1F0D4C

#1F0D4C is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.107 H 288.2°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#1F0D4C
RGBrgb(31, 13, 76)
HSLhsl(257, 71%, 17%)
HSVhsv(257, 83%, 30%)
CMYKcmyk(59.2%, 82.9%, 0%, 70.2%)
CIE-LABlab(9.81, 27.11, -35.41)
CIE-LCHlch(9.81, 44.60, 307.44°)
OKLaboklab(23.46% 0.0335 -0.1018)
OKLCHoklch(23.46% 0.107 288.2)
XYZxyz(2.0131, 1.1009, 6.9425)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D4C #3A4C0D
analogous
#0D1A4C #1F0D4C #3F0D4C
triadic
#1F0D4C #4C1F0D #0D4C1F
tetradic
#1F0D4C #4C0D1A #3A4C0D #0D4C3F
square
#1F0D4C #4C0D1A #3A4C0D #0D4C3F
split-complementary
#1F0D4C #4C3F0D #1A4C0D
monochromatic
#0B041A #0B041A #1F0D4C #341680 #4A1FB5

Accessibility & contrast

On white

17.21
#1F0D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0D4C
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D4C#FFFFFF#000000##FFFFFF
##1F0D4C1.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4E
Deuteranopia (green-blind)
#00194B
Tritanopia (blue-blind)
#0D1E2C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0d4c;
/* rgb */ color: rgb(31, 13, 76);
/* oklch */ color: oklch(23.5% 0.107 288.2);
Tailwind
colors: {
  custom: {
    50: '#614e7f',
    500: '#1f0d4c',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d4c;
$custom-light: #614e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d4c",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 257.143,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23458,
    "c": 0.10721,
    "h": 288.2
  },
  "luminance": 0.01101
}

Semantic roles & 50–950 ramp

primary
#1F0D4C
secondary
#6E872E
accent
#EE3ABA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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