#1F0E5F#1F0E5F

#1F0E5F is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.8% C 0.131 H 281.7°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#1F0E5F
RGBrgb(31, 14, 95)
HSLhsl(253, 74%, 21%)
HSVhsv(253, 85%, 37%)
CMYKcmyk(67.4%, 85.3%, 0%, 62.7%)
CIE-LABlab(12.17, 32.78, -44.46)
CIE-LCHlch(12.17, 55.24, 306.40°)
OKLaboklab(25.76% 0.0265 -0.1283)
OKLCHoklch(25.76% 0.131 281.7)
XYZxyz(2.7870, 1.4314, 10.9537)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E5F #4E5F0E
analogous
#0E265F #1F0E5F #480E5F
triadic
#1F0E5F #5F1F0E #0E5F1F
tetradic
#1F0E5F #5F0E26 #4E5F0E #0E5F48
square
#1F0E5F #5F0E26 #4E5F0E #0E5F48
split-complementary
#1F0E5F #5F480E #265F0E
monochromatic
#09041B #0E062A #1F0E5F #301694 #421ECA

Accessibility & contrast

On white

16.32
#1F0E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#1F0E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0E5F
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E5F#FFFFFF#000000##FFFFFF
##1F0E5F1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002261
Deuteranopia (green-blind)
#001D5E
Tritanopia (blue-blind)
#002737
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1f0e5f;
/* rgb */ color: rgb(31, 14, 95);
/* oklch */ color: oklch(25.8% 0.131 281.7);
Tailwind
colors: {
  custom: {
    50: '#65508d',
    500: '#1f0e5f',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e5f;
$custom-light: #65508d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e5f",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 95
  },
  "hsl": {
    "h": 252.593,
    "s": 74.312,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25756,
    "c": 0.13098,
    "h": 281.7
  },
  "luminance": 0.01432
}

Semantic roles & 50–950 ramp

primary
#1F0E5F
secondary
#839930
accent
#F137CA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F0E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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