#1F0F55#1F0F55

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

Color values

HEX#1F0F55
RGBrgb(31, 15, 85)
HSLhsl(254, 70%, 20%)
HSVhsv(254, 82%, 33%)
CMYKcmyk(63.5%, 82.4%, 0%, 66.7%)
CIE-LABlab(11.20, 28.95, -39.31)
CIE-LCHlch(11.20, 48.82, 306.38°)
OKLaboklab(24.74% 0.0291 -0.1132)
OKLCHoklch(24.74% 0.117 284.4)
XYZxyz(2.3751, 1.2887, 8.7162)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F55 #45550F
analogous
#0F2255 #1F0F55 #420F55
triadic
#1F0F55 #551F0F #0F551F
tetradic
#1F0F55 #550F22 #45550F #0F5542
square
#1F0F55 #550F22 #45550F #0F5542
split-complementary
#1F0F55 #55420F #22550F
monochromatic
#09051A #0C0621 #1F0F55 #321889 #4521BD

Accessibility & contrast

On white

16.70
#1F0F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F55
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F55#FFFFFF#000000##FFFFFF
##1F0F551.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002057
Deuteranopia (green-blind)
#001C54
Tritanopia (blue-blind)
#022331
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f0f55;
/* rgb */ color: rgb(31, 15, 85);
/* oklch */ color: oklch(24.7% 0.117 284.4);
Tailwind
colors: {
  custom: {
    50: '#634f86',
    500: '#1f0f55',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f55;
$custom-light: #634f86;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f55",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 253.714,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24735,
    "c": 0.11692,
    "h": 284.4
  },
  "luminance": 0.01289
}

Semantic roles & 50–950 ramp

primary
#1F0F55
secondary
#798F31
accent
#ED3BC4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0F55

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

Preview Lab → · Contrast checker → · Palette generator →

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