#1F0640#1F0640

#1F0640 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.100 H 296.3°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#1F0640
RGBrgb(31, 6, 64)
HSLhsl(266, 83%, 14%)
HSVhsv(266, 91%, 25%)
CMYKcmyk(51.6%, 90.6%, 0%, 74.9%)
CIE-LABlab(7.15, 27.15, -31.32)
CIE-LCHlch(7.15, 41.45, 310.92°)
OKLaboklab(21.18% 0.0444 -0.0899)
OKLCHoklch(21.18% 0.1 296.3)
XYZxyz(1.5554, 0.7917, 4.9204)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0640 #274006
analogous
#060A40 #1F0640 #3C0640
triadic
#1F0640 #401F06 #06401F
tetradic
#1F0640 #40060A #274006 #06403C
square
#1F0640 #40060A #274006 #06403C
split-complementary
#1F0640 #403C06 #0A4006
monochromatic
#0E031C #0E031C #1F0640 #3A0B78 #5510B0

Accessibility & contrast

On white

18.13
#1F0640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0640
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0640#FFFFFF#000000##FFFFFF
##1F06401.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#161623
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f0640;
/* rgb */ color: rgb(31, 6, 64);
/* oklch */ color: oklch(21.2% 0.100 296.3);
Tailwind
colors: {
  custom: {
    50: '#5f4975',
    500: '#1f0640',
    950: '#000000',
  },
}
SCSS
$custom: #1f0640;
$custom-light: #5f4975;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0640",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 265.862,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21184,
    "c": 0.1003,
    "h": 296.3
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#1F0640
secondary
#578022
accent
#F92FA2
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0640

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

Preview Lab → · Contrast checker → · Palette generator →

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