#1F0F5F#1F0F5F

#1F0F5F is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.9% C 0.130 H 281.5°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#1F0F5F
RGBrgb(31, 15, 95)
HSLhsl(252, 73%, 22%)
HSVhsv(252, 84%, 37%)
CMYKcmyk(67.4%, 84.2%, 0%, 62.7%)
CIE-LABlab(12.35, 32.26, -44.16)
CIE-LCHlch(12.35, 54.69, 306.15°)
OKLaboklab(25.88% 0.0259 -0.1274)
OKLCHoklch(25.88% 0.13 281.5)
XYZxyz(2.8008, 1.4590, 10.9583)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F5F #4F5F0F
analogous
#0F275F #1F0F5F #470F5F
triadic
#1F0F5F #5F1F0F #0F5F1F
tetradic
#1F0F5F #5F0F27 #4F5F0F #0F5F47
square
#1F0F5F #5F0F27 #4F5F0F #0F5F47
split-complementary
#1F0F5F #5F470F #275F0F
monochromatic
#09041A #0E072A #1F0F5F #301794 #4120C9

Accessibility & contrast

On white

16.26
#1F0F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F5F
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F5F#FFFFFF#000000##FFFFFF
##1F0F5F1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0f5f;
/* rgb */ color: rgb(31, 15, 95);
/* oklch */ color: oklch(25.9% 0.130 281.5);
Tailwind
colors: {
  custom: {
    50: '#65508d',
    500: '#1f0f5f',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f5f;
$custom-light: #65508d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f5f",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 252,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25881,
    "c": 0.13002,
    "h": 281.5
  },
  "luminance": 0.01459
}

Semantic roles & 50–950 ramp

primary
#1F0F5F
secondary
#849832
accent
#EF38CB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F0F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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