#1F0E47#1F0E47

#1F0E47 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.099 H 290.0°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#1F0E47
RGBrgb(31, 14, 71)
HSLhsl(258, 67%, 17%)
HSVhsv(258, 80%, 28%)
CMYKcmyk(56.3%, 80.3%, 0%, 72.2%)
CIE-LABlab(9.48, 24.88, -32.45)
CIE-LCHlch(9.48, 40.89, 307.47°)
OKLaboklab(23.07% 0.0339 -0.0932)
OKLCHoklch(23.07% 0.099 290)
XYZxyz(1.8591, 1.0602, 6.0667)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E47 #36470E
analogous
#0E1A47 #1F0E47 #3C0E47
triadic
#1F0E47 #471F0E #0E471F
tetradic
#1F0E47 #470E1A #36470E #0E473C
square
#1F0E47 #470E1A #36470E #0E473C
split-complementary
#1F0E47 #473C0E #1A470E
monochromatic
#0B051A #0B051A #1F0E47 #35187A #4C22AD

Accessibility & contrast

On white

17.33
#1F0E47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E47
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E47#FFFFFF#000000##FFFFFF
##1F0E471.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.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: #1f0e47;
/* rgb */ color: rgb(31, 14, 71);
/* oklch */ color: oklch(23.1% 0.099 290.0);
Tailwind
colors: {
  custom: {
    50: '#604e7b',
    500: '#1f0e47',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e47;
$custom-light: #604e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e47",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 71
  },
  "hsl": {
    "h": 257.895,
    "s": 67.059,
    "l": 16.667
  },
  "oklch": {
    "l": 0.2307,
    "c": 0.09916,
    "h": 290
  },
  "luminance": 0.0106
}

Semantic roles & 50–950 ramp

primary
#1F0E47
secondary
#69822F
accent
#EA3EB7
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0E47

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

Preview Lab → · Contrast checker → · Palette generator →

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