#1F0D47#1F0D47

#1F0D47 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.100 H 290.4°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#1F0D47
RGBrgb(31, 13, 71)
HSLhsl(259, 69%, 16%)
HSVhsv(259, 82%, 28%)
CMYKcmyk(56.3%, 81.7%, 0%, 72.2%)
CIE-LABlab(9.27, 25.47, -32.80)
CIE-LCHlch(9.27, 41.53, 307.83°)
OKLaboklab(22.92% 0.035 -0.0942)
OKLCHoklch(22.92% 0.1 290.4)
XYZxyz(1.8460, 1.0340, 6.0623)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D47 #35470D
analogous
#0D1847 #1F0D47 #3C0D47
triadic
#1F0D47 #471F0D #0D471F
tetradic
#1F0D47 #470D18 #35470D #0D473C
square
#1F0D47 #470D18 #35470D #0D473C
split-complementary
#1F0D47 #473C0D #18470D
monochromatic
#0B051A #0B051A #1F0D47 #36167B #4C20AE

Accessibility & contrast

On white

17.40
#1F0D47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0D47
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D47#FFFFFF#000000##FFFFFF
##1F0D471.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B49
Deuteranopia (green-blind)
#001946
Tritanopia (blue-blind)
#111D29
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0d47;
/* rgb */ color: rgb(31, 13, 71);
/* oklch */ color: oklch(22.9% 0.100 290.4);
Tailwind
colors: {
  custom: {
    50: '#604d7b',
    500: '#1f0d47',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d47;
$custom-light: #604d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d47",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 71
  },
  "hsl": {
    "h": 258.621,
    "s": 69.048,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2292,
    "c": 0.10047,
    "h": 290.4
  },
  "luminance": 0.01034
}

Semantic roles & 50–950 ramp

primary
#1F0D47
secondary
#68822D
accent
#EC3CB5
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0D47

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

Preview Lab → · Contrast checker → · Palette generator →

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