#1F0647#1F0647

#1F0647 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.109 H 292.4°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#1F0647
RGBrgb(31, 6, 71)
HSLhsl(263, 84%, 15%)
HSVhsv(263, 92%, 28%)
CMYKcmyk(56.3%, 91.5%, 0%, 72.2%)
CIE-LABlab(7.92, 29.37, -35.02)
CIE-LCHlch(7.92, 45.71, 309.98°)
OKLaboklab(21.98% 0.0415 -0.1006)
OKLCHoklch(21.98% 0.109 292.4)
XYZxyz(1.7672, 0.8764, 6.0361)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0647 #2E4706
analogous
#060D47 #1F0647 #400647
triadic
#1F0647 #471F06 #06471F
tetradic
#1F0647 #47060D #2E4706 #064740
square
#1F0647 #47060D #2E4706 #064740
split-complementary
#1F0647 #474006 #0D4706
monochromatic
#0C021C #0C021C #1F0647 #380B7F #5010B8

Accessibility & contrast

On white

17.87
#1F0647 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1F0647 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0647
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0647#FFFFFF#000000##FFFFFF
##1F06471.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001849
Deuteranopia (green-blind)
#001646
Tritanopia (blue-blind)
#111927
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f0647;
/* rgb */ color: rgb(31, 6, 71);
/* oklch */ color: oklch(22.0% 0.109 292.4);
Tailwind
colors: {
  custom: {
    50: '#61497b',
    500: '#1f0647',
    950: '#000000',
  },
}
SCSS
$custom: #1f0647;
$custom-light: #61497b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0647",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 71
  },
  "hsl": {
    "h": 263.077,
    "s": 84.416,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21975,
    "c": 0.10885,
    "h": 292.4
  },
  "luminance": 0.00876
}

Semantic roles & 50–950 ramp

primary
#1F0647
secondary
#608623
accent
#FB2DAC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#050109
muted
#7A777B

Preview Lab

Preview with #1F0647

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

Preview Lab → · Contrast checker → · Palette generator →

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