#1F0641#1F0641

#1F0641 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.102 H 295.7°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#1F0641
RGBrgb(31, 6, 65)
HSLhsl(265, 83%, 14%)
HSVhsv(265, 91%, 25%)
CMYKcmyk(52.3%, 90.8%, 0%, 74.5%)
CIE-LABlab(7.26, 27.48, -31.86)
CIE-LCHlch(7.26, 42.08, 310.77°)
OKLaboklab(21.29% 0.044 -0.0915)
OKLCHoklch(21.29% 0.102 295.7)
XYZxyz(1.5841, 0.8032, 5.0716)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0641 #284106
analogous
#060A41 #1F0641 #3D0641
triadic
#1F0641 #411F06 #06411F
tetradic
#1F0641 #41060A #284106 #06413D
square
#1F0641 #41060A #284106 #06413D
split-complementary
#1F0641 #413D06 #0A4106
monochromatic
#0D031C #0D031C #1F0641 #3A0B79 #5410B1

Accessibility & contrast

On white

18.09
#1F0641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1F0641 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0641
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0641#FFFFFF#000000##FFFFFF
##1F06411.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001643
Deuteranopia (green-blind)
#001540
Tritanopia (blue-blind)
#151724
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f0641;
/* rgb */ color: rgb(31, 6, 65);
/* oklch */ color: oklch(21.3% 0.102 295.7);
Tailwind
colors: {
  custom: {
    50: '#5f4976',
    500: '#1f0641',
    950: '#000000',
  },
}
SCSS
$custom: #1f0641;
$custom-light: #5f4976;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0641",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 65
  },
  "hsl": {
    "h": 265.424,
    "s": 83.099,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21294,
    "c": 0.10152,
    "h": 295.7
  },
  "luminance": 0.00803
}

Semantic roles & 50–950 ramp

primary
#1F0641
secondary
#598122
accent
#F92EA3
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0641

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

Preview Lab → · Contrast checker → · Palette generator →

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