#1F0E56#1F0E56

#1F0E56 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.119 H 284.3°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#1F0E56
RGBrgb(31, 14, 86)
HSLhsl(254, 72%, 20%)
HSVhsv(254, 84%, 34%)
CMYKcmyk(64%, 83.7%, 0%, 66.3%)
CIE-LABlab(11.11, 29.84, -40.12)
CIE-LCHlch(11.11, 50.00, 306.64°)
OKLaboklab(24.71% 0.0295 -0.1156)
OKLCHoklch(24.71% 0.119 284.3)
XYZxyz(2.4013, 1.2771, 8.9223)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E56 #45560E
analogous
#0E2156 #1F0E56 #430E56
triadic
#1F0E56 #561F0E #0E561F
tetradic
#1F0E56 #560E21 #45560E #0E5643
square
#1F0E56 #560E21 #45560E #0E5643
split-complementary
#1F0E56 #56430E #21560E
monochromatic
#09041A #0C0521 #1F0E56 #32178B #451FBF

Accessibility & contrast

On white

16.73
#1F0E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E56
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E56#FFFFFF#000000##FFFFFF
##1F0E561.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001B55
Tritanopia (blue-blind)
#012332
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f0e56;
/* rgb */ color: rgb(31, 14, 86);
/* oklch */ color: oklch(24.7% 0.119 284.3);
Tailwind
colors: {
  custom: {
    50: '#634f86',
    500: '#1f0e56',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e56;
$custom-light: #634f86;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e56",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 86
  },
  "hsl": {
    "h": 254.167,
    "s": 72,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24712,
    "c": 0.11933,
    "h": 284.3
  },
  "luminance": 0.01277
}

Semantic roles & 50–950 ramp

primary
#1F0E56
secondary
#799030
accent
#EF39C4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0E56

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

Preview Lab → · Contrast checker → · Palette generator →

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