#1F0F59#1F0F59

#1F0F59 is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.2% C 0.122 H 283.2°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#1F0F59
RGBrgb(31, 15, 89)
HSLhsl(253, 71%, 20%)
HSVhsv(253, 83%, 35%)
CMYKcmyk(65.2%, 83.1%, 0%, 65.1%)
CIE-LABlab(11.65, 30.28, -41.27)
CIE-LCHlch(11.65, 51.19, 306.27°)
OKLaboklab(25.19% 0.0278 -0.119)
OKLCHoklch(25.19% 0.122 283.2)
XYZxyz(2.5385, 1.3541, 9.5768)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F59 #49590F
analogous
#0F2459 #1F0F59 #440F59
triadic
#1F0F59 #591F0F #0F591F
tetradic
#1F0F59 #590F24 #49590F #0F5944
square
#1F0F59 #590F24 #49590F #0F5944
split-complementary
#1F0F59 #59440F #24590F
monochromatic
#09041A #0D0625 #1F0F59 #31188D #4321C2

Accessibility & contrast

On white

16.53
#1F0F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#1F0F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F59
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F59#FFFFFF#000000##FFFFFF
##1F0F591.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215B
Deuteranopia (green-blind)
#001C58
Tritanopia (blue-blind)
#002534
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f0f59;
/* rgb */ color: rgb(31, 15, 89);
/* oklch */ color: oklch(25.2% 0.122 283.2);
Tailwind
colors: {
  custom: {
    50: '#645089',
    500: '#1f0f59',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f59;
$custom-light: #645089;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f59",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 89
  },
  "hsl": {
    "h": 252.973,
    "s": 71.154,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25188,
    "c": 0.12221,
    "h": 283.2
  },
  "luminance": 0.01354
}

Semantic roles & 50–950 ramp

primary
#1F0F59
secondary
#7E9331
accent
#EE3AC7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0F59

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

Preview Lab → · Contrast checker → · Palette generator →

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