#1F0648#1F0648

#1F0648 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.110 H 291.9°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#1F0648
RGBrgb(31, 6, 72)
HSLhsl(263, 85%, 15%)
HSVhsv(263, 92%, 28%)
CMYKcmyk(56.9%, 91.7%, 0%, 71.8%)
CIE-LABlab(8.03, 29.67, -35.53)
CIE-LCHlch(8.03, 46.29, 309.86°)
OKLaboklab(22.09% 0.0411 -0.1021)
OKLCHoklch(22.09% 0.11 291.9)
XYZxyz(1.7996, 0.8894, 6.2065)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0648 #2F4806
analogous
#060E48 #1F0648 #400648
triadic
#1F0648 #481F06 #06481F
tetradic
#1F0648 #48060E #2F4806 #064840
square
#1F0648 #48060E #2F4806 #064840
split-complementary
#1F0648 #484006 #0E4806
monochromatic
#0C021C #0C021C #1F0648 #370B80 #500FB9

Accessibility & contrast

On white

17.83
#1F0648 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0648
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0648#FFFFFF#000000##FFFFFF
##1F06481.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00194A
Deuteranopia (green-blind)
#001647
Tritanopia (blue-blind)
#111A28
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0648;
/* rgb */ color: rgb(31, 6, 72);
/* oklch */ color: oklch(22.1% 0.110 291.9);
Tailwind
colors: {
  custom: {
    50: '#614a7c',
    500: '#1f0648',
    950: '#000000',
  },
}
SCSS
$custom: #1f0648;
$custom-light: #614a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0648",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 72
  },
  "hsl": {
    "h": 262.727,
    "s": 84.615,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2209,
    "c": 0.11006,
    "h": 291.9
  },
  "luminance": 0.00889
}

Semantic roles & 50–950 ramp

primary
#1F0648
secondary
#618723
accent
#FB2DAD
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#050109
muted
#7A777B

Preview Lab

Preview with #1F0648

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

Preview Lab → · Contrast checker → · Palette generator →

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