#1F0E5A#1F0E5A

#1F0E5A is a dark, vivid violet. Relative luminance 0.013; OKLCH L 25.2% C 0.125 H 283.1°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#1F0E5A
RGBrgb(31, 14, 90)
HSLhsl(253, 73%, 20%)
HSVhsv(253, 84%, 35%)
CMYKcmyk(65.6%, 84.4%, 0%, 64.7%)
CIE-LABlab(11.58, 31.15, -42.07)
CIE-LCHlch(11.58, 52.35, 306.52°)
OKLaboklab(25.17% 0.0282 -0.1213)
OKLCHoklch(25.17% 0.125 283.1)
XYZxyz(2.5670, 1.3434, 9.7949)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E5A #495A0E
analogous
#0E235A #1F0E5A #450E5A
triadic
#1F0E5A #5A1F0E #0E5A1F
tetradic
#1F0E5A #5A0E23 #495A0E #0E5A45
square
#1F0E5A #5A0E23 #495A0E #0E5A45
split-complementary
#1F0E5A #5A450E #235A0E
monochromatic
#09041A #0D0625 #1F0E5A #31168F #431EC4

Accessibility & contrast

On white

16.55
#1F0E5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E5A
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E5A#FFFFFF#000000##FFFFFF
##1F0E5A1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0e5a;
/* rgb */ color: rgb(31, 14, 90);
/* oklch */ color: oklch(25.2% 0.125 283.1);
Tailwind
colors: {
  custom: {
    50: '#644f8a',
    500: '#1f0e5a',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e5a;
$custom-light: #644f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e5a",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 90
  },
  "hsl": {
    "h": 253.421,
    "s": 73.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25172,
    "c": 0.12454,
    "h": 283.1
  },
  "luminance": 0.01344
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F0E5A

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

Preview Lab → · Contrast checker → · Palette generator →

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