#1F0638#1F0638

#1F0638 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.090 H 301.5°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#1F0638
RGBrgb(31, 6, 56)
HSLhsl(270, 81%, 12%)
HSVhsv(270, 89%, 22%)
CMYKcmyk(44.6%, 89.3%, 0%, 78%)
CIE-LABlab(6.39, 24.41, -26.80)
CIE-LCHlch(6.39, 36.25, 312.33°)
OKLaboklab(20.33% 0.0473 -0.0771)
OKLCHoklch(20.33% 0.09 301.5)
XYZxyz(1.3438, 0.7071, 3.8063)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0638 #1F3806
analogous
#060638 #1F0638 #380638
triadic
#1F0638 #381F06 #06381F
tetradic
#1F0638 #380606 #1F3806 #063838
square
#1F0638 #380606 #1F3806 #063838
split-complementary
#1F0638 #383806 #063806
monochromatic
#0F031C #0F031C #1F0638 #3E0C6F #5C12A7

Accessibility & contrast

On white

18.40
#1F0638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0638
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0638#FFFFFF#000000##FFFFFF
##1F06381.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001439
Deuteranopia (green-blind)
#001437
Tritanopia (blue-blind)
#19131F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0638;
/* rgb */ color: rgb(31, 6, 56);
/* oklch */ color: oklch(20.3% 0.090 301.5);
Tailwind
colors: {
  custom: {
    50: '#5e496f',
    500: '#1f0638',
    950: '#000000',
  },
}
SCSS
$custom: #1f0638;
$custom-light: #5e496f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0638",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 56
  },
  "hsl": {
    "h": 270,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20327,
    "c": 0.09046,
    "h": 301.5
  },
  "luminance": 0.00707
}

Semantic roles & 50–950 ramp

primary
#1F0638
secondary
#4D7821
accent
#F73194
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0638

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

Preview Lab → · Contrast checker → · Palette generator →

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