#1F0436#1F0436

#1F0436 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.8% C 0.091 H 303.7°. Best body text is #FFFFFF at 18.60:1 contrast (WCAG AA passes).

Color values

HEX#1F0436
RGBrgb(31, 4, 54)
HSLhsl(272, 86%, 11%)
HSVhsv(272, 93%, 21%)
CMYKcmyk(42.6%, 92.6%, 0%, 78.8%)
CIE-LABlab(5.82, 24.72, -26.25)
CIE-LCHlch(5.82, 36.06, 313.28°)
OKLaboklab(19.79% 0.0508 -0.0761)
OKLCHoklch(19.79% 0.091 303.7)
XYZxyz(1.2742, 0.6445, 3.5466)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0436 #1B3604
analogous
#060436 #1F0436 #360434
triadic
#1F0436 #361F04 #04361F
tetradic
#1F0436 #360604 #1B3604 #043436
square
#1F0436 #360604 #1B3604 #043436
split-complementary
#1F0436 #343604 #043606
monochromatic
#10021C #10021C #1F0436 #40086F #600CA8

Accessibility & contrast

On white

18.60
#1F0436 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0436
18.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0436#FFFFFF#000000##FFFFFF
##1F04361.0018.601.1318.60
#FFFFFF18.601.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001237
Deuteranopia (green-blind)
#001335
Tritanopia (blue-blind)
#1A111D
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f0436;
/* rgb */ color: rgb(31, 4, 54);
/* oklch */ color: oklch(19.8% 0.091 303.7);
Tailwind
colors: {
  custom: {
    50: '#5e486d',
    500: '#1f0436',
    950: '#000000',
  },
}
SCSS
$custom: #1f0436;
$custom-light: #5e486d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0436",
  "rgb": {
    "r": 31,
    "g": 4,
    "b": 54
  },
  "hsl": {
    "h": 272.4,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19791,
    "c": 0.09147,
    "h": 303.7
  },
  "luminance": 0.00644
}

Semantic roles & 50–950 ramp

primary
#1F0436
secondary
#47781E
accent
#FC2B8C
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1F0436

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

Preview Lab → · Contrast checker → · Palette generator →

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