#1F0535#1F0535

#1F0535 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.089 H 304.1°. Best body text is #FFFFFF at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#1F0535
RGBrgb(31, 5, 53)
HSLhsl(273, 83%, 11%)
HSVhsv(273, 91%, 21%)
CMYKcmyk(41.5%, 90.6%, 0%, 79.2%)
CIE-LABlab(5.93, 23.85, -25.33)
CIE-LCHlch(5.93, 34.79, 313.27°)
OKLaboklab(19.85% 0.0497 -0.0733)
OKLCHoklch(19.85% 0.089 304.1)
XYZxyz(1.2618, 0.6569, 3.4278)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0535 #1B3505
analogous
#070535 #1F0535 #350533
triadic
#1F0535 #351F05 #05351F
tetradic
#1F0535 #350705 #1B3505 #053335
square
#1F0535 #350705 #1B3505 #053335
split-complementary
#1F0535 #333505 #053507
monochromatic
#10031C #10031C #1F0535 #400A6D #6010A5

Accessibility & contrast

On white

18.56
#1F0535 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1F0535 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0535
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0535#FFFFFF#000000##FFFFFF
##1F05351.0018.561.1318.56
#FFFFFF18.561.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001336
Deuteranopia (green-blind)
#001334
Tritanopia (blue-blind)
#1B111C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f0535;
/* rgb */ color: rgb(31, 5, 53);
/* oklch */ color: oklch(19.9% 0.089 304.1);
Tailwind
colors: {
  custom: {
    50: '#5d486d',
    500: '#1f0535',
    950: '#000000',
  },
}
SCSS
$custom: #1f0535;
$custom-light: #5d486d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0535",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 53
  },
  "hsl": {
    "h": 272.5,
    "s": 82.759,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19854,
    "c": 0.08851,
    "h": 304.1
  },
  "luminance": 0.00657
}

Semantic roles & 50–950 ramp

primary
#1F0535
secondary
#477620
accent
#F92F8B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1F0535

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

Preview Lab → · Contrast checker → · Palette generator →

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