#1F0636#1F0636

#1F0636 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.088 H 303.0°. Best body text is #FFFFFF at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#1F0636
RGBrgb(31, 6, 54)
HSLhsl(271, 80%, 12%)
HSVhsv(271, 89%, 21%)
CMYKcmyk(42.6%, 88.9%, 0%, 78.8%)
CIE-LABlab(6.21, 23.70, -25.62)
CIE-LCHlch(6.21, 34.90, 312.77°)
OKLaboklab(20.12% 0.0479 -0.0738)
OKLCHoklch(20.12% 0.088 303)
XYZxyz(1.2959, 0.6879, 3.5538)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0636 #1D3606
analogous
#070636 #1F0636 #360635
triadic
#1F0636 #361F06 #06361F
tetradic
#1F0636 #360706 #1D3606 #063536
square
#1F0636 #360706 #1D3606 #063536
split-complementary
#1F0636 #353606 #063607
monochromatic
#10031C #10031C #1F0636 #3F0C6D #5E12A4

Accessibility & contrast

On white

18.46
#1F0636 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1F0636 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0636
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0636#FFFFFF#000000##FFFFFF
##1F06361.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001337
Deuteranopia (green-blind)
#001435
Tritanopia (blue-blind)
#1A121D
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0636;
/* rgb */ color: rgb(31, 6, 54);
/* oklch */ color: oklch(20.1% 0.088 303.0);
Tailwind
colors: {
  custom: {
    50: '#5d496d',
    500: '#1f0636',
    950: '#000000',
  },
}
SCSS
$custom: #1f0636;
$custom-light: #5d496d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0636",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 54
  },
  "hsl": {
    "h": 271.25,
    "s": 80,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20121,
    "c": 0.08799,
    "h": 303
  },
  "luminance": 0.00688
}

Semantic roles & 50–950 ramp

primary
#1F0636
secondary
#4A7621
accent
#F63190
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0636

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

Preview Lab → · Contrast checker → · Palette generator →

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