#1F0646#1F0646

#1F0646 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.108 H 292.9°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#1F0646
RGBrgb(31, 6, 70)
HSLhsl(263, 84%, 15%)
HSVhsv(263, 91%, 27%)
CMYKcmyk(55.7%, 91.4%, 0%, 72.5%)
CIE-LABlab(7.80, 29.07, -34.51)
CIE-LCHlch(7.80, 45.12, 310.11°)
OKLaboklab(21.86% 0.0419 -0.0991)
OKLCHoklch(21.86% 0.108 292.9)
XYZxyz(1.7354, 0.8637, 5.8684)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0646 #2D4606
analogous
#060D46 #1F0646 #3F0646
triadic
#1F0646 #461F06 #06461F
tetradic
#1F0646 #46060D #2D4606 #06463F
square
#1F0646 #46060D #2D4606 #06463F
split-complementary
#1F0646 #463F06 #0D4606
monochromatic
#0C021C #0C021C #1F0646 #380B7E #5110B7

Accessibility & contrast

On white

17.91
#1F0646 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1F0646 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0646
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0646#FFFFFF#000000##FFFFFF
##1F06461.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001848
Deuteranopia (green-blind)
#001645
Tritanopia (blue-blind)
#121927
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f0646;
/* rgb */ color: rgb(31, 6, 70);
/* oklch */ color: oklch(21.9% 0.108 292.9);
Tailwind
colors: {
  custom: {
    50: '#60497a',
    500: '#1f0646',
    950: '#000000',
  },
}
SCSS
$custom: #1f0646;
$custom-light: #60497a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0646",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 70
  },
  "hsl": {
    "h": 263.438,
    "s": 84.211,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2186,
    "c": 0.10763,
    "h": 292.9
  },
  "luminance": 0.00864
}

Semantic roles & 50–950 ramp

primary
#1F0646
secondary
#5F8522
accent
#FA2DAA
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0646

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

Preview Lab → · Contrast checker → · Palette generator →

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