#1F0637#1F0637

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

Color values

HEX#1F0637
RGBrgb(31, 6, 55)
HSLhsl(271, 80%, 12%)
HSVhsv(271, 89%, 22%)
CMYKcmyk(43.6%, 89.1%, 0%, 78.4%)
CIE-LABlab(6.30, 24.05, -26.21)
CIE-LCHlch(6.30, 35.57, 312.54°)
OKLaboklab(20.22% 0.0476 -0.0755)
OKLCHoklch(20.22% 0.089 302.2)
XYZxyz(1.3196, 0.6974, 3.6788)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0637 #1E3706
analogous
#060637 #1F0637 #370637
triadic
#1F0637 #371F06 #06371F
tetradic
#1F0637 #370606 #1E3706 #063737
square
#1F0637 #370606 #1E3706 #063737
split-complementary
#1F0637 #373706 #063706
monochromatic
#10031C #10031C #1F0637 #3E0C6E #5D12A5

Accessibility & contrast

On white

18.43
#1F0637 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0637
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0637#FFFFFF#000000##FFFFFF
##1F06371.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001438
Deuteranopia (green-blind)
#001436
Tritanopia (blue-blind)
#1A121E
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0637;
/* rgb */ color: rgb(31, 6, 55);
/* oklch */ color: oklch(20.2% 0.089 302.2);
Tailwind
colors: {
  custom: {
    50: '#5e496e',
    500: '#1f0637',
    950: '#000000',
  },
}
SCSS
$custom: #1f0637;
$custom-light: #5e496e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0637",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 55
  },
  "hsl": {
    "h": 270.612,
    "s": 80.328,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20223,
    "c": 0.08922,
    "h": 302.2
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#1F0637
secondary
#4C7721
accent
#F73192
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0637

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

Preview Lab → · Contrast checker → · Palette generator →

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