#1F0D4E#1F0D4E

#1F0D4E is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.110 H 287.4°. Best body text is #FFFFFF at 17.13:1 contrast (WCAG AA passes).

Color values

HEX#1F0D4E
RGBrgb(31, 13, 78)
HSLhsl(257, 71%, 18%)
HSVhsv(257, 83%, 31%)
CMYKcmyk(60.3%, 83.3%, 0%, 69.4%)
CIE-LABlab(10.02, 27.77, -36.43)
CIE-LCHlch(10.02, 45.81, 307.31°)
OKLaboklab(23.68% 0.0329 -0.1048)
OKLCHoklch(23.68% 0.11 287.4)
XYZxyz(2.0837, 1.1291, 7.3144)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D4E #3C4E0D
analogous
#0D1C4E #1F0D4E #3F0D4E
triadic
#1F0D4E #4E1F0D #0D4E1F
tetradic
#1F0D4E #4E0D1C #3C4E0D #0D4E3F
square
#1F0D4E #4E0D1C #3C4E0D #0D4E3F
split-complementary
#1F0D4E #4E3F0D #1C4E0D
monochromatic
#0A041A #0A041A #1F0D4E #341682 #491EB7

Accessibility & contrast

On white

17.13
#1F0D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1F0D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0D4E
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D4E#FFFFFF#000000##FFFFFF
##1F0D4E1.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D50
Deuteranopia (green-blind)
#001A4D
Tritanopia (blue-blind)
#0B1F2D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0d4e;
/* rgb */ color: rgb(31, 13, 78);
/* oklch */ color: oklch(23.7% 0.110 287.4);
Tailwind
colors: {
  custom: {
    50: '#614e80',
    500: '#1f0d4e',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d4e;
$custom-light: #614e80;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d4e",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 78
  },
  "hsl": {
    "h": 256.615,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23678,
    "c": 0.10986,
    "h": 287.4
  },
  "luminance": 0.01129
}

Semantic roles & 50–950 ramp

primary
#1F0D4E
secondary
#70892E
accent
#EE3ABC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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