#1F0D58#1F0D58

#1F0D58 is a very dark, vivid violet. Relative luminance 0.013; OKLCH L 24.8% C 0.123 H 283.9°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#1F0D58
RGBrgb(31, 13, 88)
HSLhsl(254, 74%, 20%)
HSVhsv(254, 85%, 35%)
CMYKcmyk(64.8%, 85.2%, 0%, 65.5%)
CIE-LABlab(11.16, 31.03, -41.40)
CIE-LCHlch(11.16, 51.74, 306.85°)
OKLaboklab(24.81% 0.0296 -0.1193)
OKLCHoklch(24.81% 0.123 283.9)
XYZxyz(2.4699, 1.2836, 9.3482)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D58 #46580D
analogous
#0D2158 #1F0D58 #450D58
triadic
#1F0D58 #581F0D #0D581F
tetradic
#1F0D58 #580D21 #46580D #0D5845
square
#1F0D58 #580D21 #46580D #0D5845
split-complementary
#1F0D58 #58450D #21580D
monochromatic
#09041B #0C0523 #1F0D58 #32158D #451DC3

Accessibility & contrast

On white

16.71
#1F0D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#1F0D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0D58
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D58#FFFFFF#000000##FFFFFF
##1F0D581.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205A
Deuteranopia (green-blind)
#001B57
Tritanopia (blue-blind)
#002333
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f0d58;
/* rgb */ color: rgb(31, 13, 88);
/* oklch */ color: oklch(24.8% 0.123 283.9);
Tailwind
colors: {
  custom: {
    50: '#644f88',
    500: '#1f0d58',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d58;
$custom-light: #644f88;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d58",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 254.4,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.24813,
    "c": 0.12296,
    "h": 283.9
  },
  "luminance": 0.01284
}

Semantic roles & 50–950 ramp

primary
#1F0D58
secondary
#7A932E
accent
#F137C4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0D58

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

Preview Lab → · Contrast checker → · Palette generator →

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