#1F0E5B#1F0E5B

#1F0E5B is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.3% C 0.126 H 282.8°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#1F0E5B
RGBrgb(31, 14, 91)
HSLhsl(253, 73%, 21%)
HSVhsv(253, 85%, 36%)
CMYKcmyk(65.9%, 84.6%, 0%, 64.3%)
CIE-LABlab(11.69, 31.48, -42.55)
CIE-LCHlch(11.69, 52.93, 306.50°)
OKLaboklab(25.29% 0.0279 -0.1227)
OKLCHoklch(25.29% 0.126 282.8)
XYZxyz(2.6099, 1.3605, 10.0206)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E5B #4A5B0E
analogous
#0E235B #1F0E5B #450E5B
triadic
#1F0E5B #5B1F0E #0E5B1F
tetradic
#1F0E5B #5B0E23 #4A5B0E #0E5B45
square
#1F0E5B #5B0E23 #4A5B0E #0E5B45
split-complementary
#1F0E5B #5B450E #235B0E
monochromatic
#09041B #0D0626 #1F0E5B #311690 #431EC5

Accessibility & contrast

On white

16.51
#1F0E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#1F0E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0E5B
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E5B#FFFFFF#000000##FFFFFF
##1F0E5B1.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215D
Deuteranopia (green-blind)
#001C5A
Tritanopia (blue-blind)
#002534
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f0e5b;
/* rgb */ color: rgb(31, 14, 91);
/* oklch */ color: oklch(25.3% 0.126 282.8);
Tailwind
colors: {
  custom: {
    50: '#644f8a',
    500: '#1f0e5b',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e5b;
$custom-light: #644f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e5b",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 91
  },
  "hsl": {
    "h": 253.247,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25288,
    "c": 0.12584,
    "h": 282.8
  },
  "luminance": 0.01361
}

Semantic roles & 50–950 ramp

primary
#1F0E5B
secondary
#7F9530
accent
#F038C7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F0E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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