#1F0F5D#1F0F5D

#1F0F5D is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.6% C 0.127 H 282.0°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#1F0F5D
RGBrgb(31, 15, 93)
HSLhsl(252, 72%, 21%)
HSVhsv(252, 84%, 36%)
CMYKcmyk(66.7%, 83.9%, 0%, 63.5%)
CIE-LABlab(12.11, 31.60, -43.21)
CIE-LCHlch(12.11, 53.53, 306.18°)
OKLaboklab(25.65% 0.0265 -0.1246)
OKLCHoklch(25.65% 0.127 282)
XYZxyz(2.7111, 1.4231, 10.4856)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F5D #4D5D0F
analogous
#0F265D #1F0F5D #460F5D
triadic
#1F0F5D #5D1F0F #0F5D1F
tetradic
#1F0F5D #5D0F26 #4D5D0F #0F5D46
square
#1F0F5D #5D0F26 #4D5D0F #0F5D46
split-complementary
#1F0F5D #5D460F #265D0F
monochromatic
#09041A #0D0628 #1F0F5D #311792 #4220C6

Accessibility & contrast

On white

16.35
#1F0F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F5D
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F5D#FFFFFF#000000##FFFFFF
##1F0F5D1.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0f5d;
/* rgb */ color: rgb(31, 15, 93);
/* oklch */ color: oklch(25.6% 0.127 282.0);
Tailwind
colors: {
  custom: {
    50: '#65508c',
    500: '#1f0f5d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f5d;
$custom-light: #65508c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f5d",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 252.308,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25648,
    "c": 0.12743,
    "h": 282
  },
  "luminance": 0.01423
}

Semantic roles & 50–950 ramp

primary
#1F0F5D
secondary
#829631
accent
#EF39CA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F0F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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