#1F0C5F#1F0C5F

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

Color values

HEX#1F0C5F
RGBrgb(31, 12, 95)
HSLhsl(254, 78%, 21%)
HSVhsv(254, 87%, 37%)
CMYKcmyk(67.4%, 87.4%, 0%, 62.7%)
CIE-LABlab(11.83, 33.77, -45.02)
CIE-LCHlch(11.83, 56.28, 306.88°)
OKLaboklab(25.52% 0.0277 -0.1299)
OKLCHoklch(25.52% 0.133 282)
XYZxyz(2.7615, 1.3803, 10.9452)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C5F #4C5F0C
analogous
#0C225F #1F0C5F #480C5F
triadic
#1F0C5F #5F1F0C #0C5F1F
tetradic
#1F0C5F #5F0C22 #4C5F0C #0C5F48
square
#1F0C5F #5F0C22 #4C5F0C #0C5F48
split-complementary
#1F0C5F #5F480C #225F0C
monochromatic
#09031B #0D0529 #1F0C5F #311395 #421ACC

Accessibility & contrast

On white

16.46
#1F0C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0C5F
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C5F#FFFFFF#000000##FFFFFF
##1F0C5F1.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002261
Deuteranopia (green-blind)
#001C5E
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f0c5f;
/* rgb */ color: rgb(31, 12, 95);
/* oklch */ color: oklch(25.5% 0.133 282.0);
Tailwind
colors: {
  custom: {
    50: '#654f8d',
    500: '#1f0c5f',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c5f;
$custom-light: #654f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c5f",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 253.735,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25522,
    "c": 0.13278,
    "h": 282
  },
  "luminance": 0.0138
}

Semantic roles & 50–950 ramp

primary
#1F0C5F
secondary
#81992D
accent
#F434C8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F0C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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