#1F0E4D#1F0E4D

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

Color values

HEX#1F0E4D
RGBrgb(31, 14, 77)
HSLhsl(256, 69%, 18%)
HSVhsv(256, 82%, 30%)
CMYKcmyk(59.7%, 81.8%, 0%, 69.8%)
CIE-LABlab(10.12, 26.87, -35.59)
CIE-LCHlch(10.12, 44.59, 307.05°)
OKLaboklab(23.71% 0.0323 -0.1024)
OKLCHoklch(23.71% 0.107 287.5)
XYZxyz(2.0613, 1.1411, 7.1314)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E4D #3C4D0E
analogous
#0E1D4D #1F0E4D #3E0E4D
triadic
#1F0E4D #4D1F0E #0E4D1F
tetradic
#1F0E4D #4D0E1D #3C4D0E #0E4D3E
square
#1F0E4D #4D0E1D #3C4D0E #0E4D3E
split-complementary
#1F0E4D #4D3E0E #1D4D0E
monochromatic
#0A051A #0A051A #1F0E4D #341781 #4921B5

Accessibility & contrast

On white

17.10
#1F0E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E4D
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E4D#FFFFFF#000000##FFFFFF
##1F0E4D1.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4F
Deuteranopia (green-blind)
#001A4C
Tritanopia (blue-blind)
#0C1F2C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0e4d;
/* rgb */ color: rgb(31, 14, 77);
/* oklch */ color: oklch(23.7% 0.107 287.5);
Tailwind
colors: {
  custom: {
    50: '#614e7f',
    500: '#1f0e4d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e4d;
$custom-light: #614e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e4d",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 77
  },
  "hsl": {
    "h": 256.19,
    "s": 69.231,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2371,
    "c": 0.10735,
    "h": 287.5
  },
  "luminance": 0.01141
}

Semantic roles & 50–950 ramp

primary
#1F0E4D
secondary
#70882F
accent
#EC3CBC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #1F0E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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