#1F0F5C#1F0F5C

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

Color values

HEX#1F0F5C
RGBrgb(31, 15, 92)
HSLhsl(252, 72%, 21%)
HSVhsv(252, 84%, 36%)
CMYKcmyk(66.3%, 83.7%, 0%, 63.9%)
CIE-LABlab(11.99, 31.27, -42.73)
CIE-LCHlch(11.99, 52.95, 306.20°)
OKLaboklab(25.53% 0.0269 -0.1232)
OKLCHoklch(25.53% 0.126 282.3)
XYZxyz(2.6671, 1.4055, 10.2539)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F5C #4C5C0F
analogous
#0F255C #1F0F5C #450F5C
triadic
#1F0F5C #5C1F0F #0F5C1F
tetradic
#1F0F5C #5C0F25 #4C5C0F #0F5C45
square
#1F0F5C #5C0F25 #4C5C0F #0F5C45
split-complementary
#1F0F5C #5C450F #255C0F
monochromatic
#09041A #0D0627 #1F0F5C #311891 #4220C5

Accessibility & contrast

On white

16.39
#1F0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F5C
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F5C#FFFFFF#000000##FFFFFF
##1F0F5C1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225E
Deuteranopia (green-blind)
#001D5B
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f0f5c;
/* rgb */ color: rgb(31, 15, 92);
/* oklch */ color: oklch(25.5% 0.126 282.3);
Tailwind
colors: {
  custom: {
    50: '#64508b',
    500: '#1f0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f5c;
$custom-light: #64508b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f5c",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 252.468,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25533,
    "c": 0.12613,
    "h": 282.3
  },
  "luminance": 0.01406
}

Semantic roles & 50–950 ramp

primary
#1F0F5C
secondary
#819531
accent
#EF39C9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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