#1F0D56#1F0D56

#1F0D56 is a very dark, vivid violet. Relative luminance 0.013; OKLCH L 24.6% C 0.120 H 284.5°. Best body text is #FFFFFF at 16.80:1 contrast (WCAG AA passes).

Color values

HEX#1F0D56
RGBrgb(31, 13, 86)
HSLhsl(255, 74%, 19%)
HSVhsv(255, 85%, 34%)
CMYKcmyk(64%, 84.9%, 0%, 66.3%)
CIE-LABlab(10.93, 30.38, -40.43)
CIE-LCHlch(10.93, 50.57, 306.92°)
OKLaboklab(24.58% 0.0302 -0.1165)
OKLCHoklch(24.58% 0.12 284.5)
XYZxyz(2.3882, 1.2509, 8.9179)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D56 #44560D
analogous
#0D1F56 #1F0D56 #440D56
triadic
#1F0D56 #561F0D #0D561F
tetradic
#1F0D56 #560D1F #44560D #0D5644
square
#1F0D56 #560D1F #44560D #0D5644
split-complementary
#1F0D56 #56440D #1F560D
monochromatic
#0A041B #0C0521 #1F0D56 #32158B #451DC0

Accessibility & contrast

On white

16.80
#1F0D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#1F0D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0D56
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D56#FFFFFF#000000##FFFFFF
##1F0D561.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F58
Deuteranopia (green-blind)
#001B55
Tritanopia (blue-blind)
#012331
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f0d56;
/* rgb */ color: rgb(31, 13, 86);
/* oklch */ color: oklch(24.6% 0.120 284.5);
Tailwind
colors: {
  custom: {
    50: '#634e86',
    500: '#1f0d56',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d56;
$custom-light: #634e86;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d56",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 254.795,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.24582,
    "c": 0.12037,
    "h": 284.5
  },
  "luminance": 0.01251
}

Semantic roles & 50–950 ramp

primary
#1F0D56
secondary
#78912E
accent
#F037C3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0D56

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

Preview Lab → · Contrast checker → · Palette generator →

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