#1F0642#1F0642

#1F0642 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.103 H 295.1°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#1F0642
RGBrgb(31, 6, 66)
HSLhsl(265, 83%, 14%)
HSVhsv(265, 91%, 26%)
CMYKcmyk(53%, 90.9%, 0%, 74.1%)
CIE-LABlab(7.36, 27.80, -32.40)
CIE-LCHlch(7.36, 42.70, 310.63°)
OKLaboklab(21.41% 0.0436 -0.093)
OKLCHoklch(21.41% 0.103 295.1)
XYZxyz(1.6133, 0.8149, 5.2255)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0642 #294206
analogous
#060B42 #1F0642 #3D0642
triadic
#1F0642 #421F06 #06421F
tetradic
#1F0642 #42060B #294206 #06423D
square
#1F0642 #42060B #294206 #06423D
split-complementary
#1F0642 #423D06 #0B4206
monochromatic
#0D031C #0D031C #1F0642 #390B7A #5410B2

Accessibility & contrast

On white

18.06
#1F0642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0642
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0642#FFFFFF#000000##FFFFFF
##1F06421.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0642;
/* rgb */ color: rgb(31, 6, 66);
/* oklch */ color: oklch(21.4% 0.103 295.1);
Tailwind
colors: {
  custom: {
    50: '#604977',
    500: '#1f0642',
    950: '#000000',
  },
}
SCSS
$custom: #1f0642;
$custom-light: #604977;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0642",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 265,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21406,
    "c": 0.10275,
    "h": 295.1
  },
  "luminance": 0.00815
}

Semantic roles & 50–950 ramp

primary
#1F0642
secondary
#5A8222
accent
#FA2EA5
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0642

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

Preview Lab → · Contrast checker → · Palette generator →

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