#1F0F60#1F0F60

#1F0F60 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.131 H 281.2°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#1F0F60
RGBrgb(31, 15, 96)
HSLhsl(252, 73%, 22%)
HSVhsv(252, 84%, 38%)
CMYKcmyk(67.7%, 84.4%, 0%, 62.4%)
CIE-LABlab(12.46, 32.59, -44.63)
CIE-LCHlch(12.46, 55.26, 306.14°)
OKLaboklab(26% 0.0256 -0.1288)
OKLCHoklch(26% 0.131 281.2)
XYZxyz(2.8466, 1.4773, 11.1992)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F60 #50600F
analogous
#0F2860 #1F0F60 #480F60
triadic
#1F0F60 #601F0F #0F601F
tetradic
#1F0F60 #600F28 #50600F #0F6048
square
#1F0F60 #600F28 #50600F #0F6048
split-complementary
#1F0F60 #60480F #28600F
monochromatic
#09041A #0E072B #1F0F60 #301795 #4120CA

Accessibility & contrast

On white

16.21
#1F0F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#1F0F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F60
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F60#FFFFFF#000000##FFFFFF
##1F0F601.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002362
Deuteranopia (green-blind)
#001D5F
Tritanopia (blue-blind)
#002738
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1f0f60;
/* rgb */ color: rgb(31, 15, 96);
/* oklch */ color: oklch(26.0% 0.131 281.2);
Tailwind
colors: {
  custom: {
    50: '#65508e',
    500: '#1f0f60',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f60;
$custom-light: #65508e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f60",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 96
  },
  "hsl": {
    "h": 251.852,
    "s": 72.973,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25998,
    "c": 0.13131,
    "h": 281.2
  },
  "luminance": 0.01477
}

Semantic roles & 50–950 ramp

primary
#1F0F60
secondary
#859932
accent
#F038CB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F0F60

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

Preview Lab → · Contrast checker → · Palette generator →

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