#1F0E5D#1F0E5D

#1F0E5D is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.5% C 0.128 H 282.2°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#1F0E5D
RGBrgb(31, 14, 93)
HSLhsl(253, 74%, 21%)
HSVhsv(253, 85%, 36%)
CMYKcmyk(66.7%, 84.9%, 0%, 63.5%)
CIE-LABlab(11.93, 32.13, -43.51)
CIE-LCHlch(11.93, 54.09, 306.45°)
OKLaboklab(25.52% 0.0272 -0.1255)
OKLCHoklch(25.52% 0.128 282.2)
XYZxyz(2.6973, 1.3955, 10.4810)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E5D #4C5D0E
analogous
#0E245D #1F0E5D #460E5D
triadic
#1F0E5D #5D1F0E #0E5D1F
tetradic
#1F0E5D #5D0E24 #4C5D0E #0E5D46
square
#1F0E5D #5D0E24 #4C5D0E #0E5D46
split-complementary
#1F0E5D #5D460E #245D0E
monochromatic
#09041B #0D0628 #1F0E5D #311692 #421EC7

Accessibility & contrast

On white

16.42
#1F0E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1F0E5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0E5D
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E5D#FFFFFF#000000##FFFFFF
##1F0E5D1.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225F
Deuteranopia (green-blind)
#001D5C
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f0e5d;
/* rgb */ color: rgb(31, 14, 93);
/* oklch */ color: oklch(25.5% 0.128 282.2);
Tailwind
colors: {
  custom: {
    50: '#654f8c',
    500: '#1f0e5d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e5d;
$custom-light: #654f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e5d",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 93
  },
  "hsl": {
    "h": 252.911,
    "s": 73.832,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25521,
    "c": 0.12842,
    "h": 282.2
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#1F0E5D
secondary
#819730
accent
#F037C9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F0E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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