#1F0742#1F0742

#1F0742 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.5% C 0.101 H 294.8°. Best body text is #FFFFFF at 17.99:1 contrast (WCAG AA passes).

Color values

HEX#1F0742
RGBrgb(31, 7, 66)
HSLhsl(264, 81%, 14%)
HSVhsv(264, 89%, 26%)
CMYKcmyk(53%, 89.4%, 0%, 74.1%)
CIE-LABlab(7.56, 27.25, -32.08)
CIE-LCHlch(7.56, 42.09, 310.34°)
OKLaboklab(21.55% 0.0425 -0.0921)
OKLCHoklch(21.55% 0.101 294.8)
XYZxyz(1.6242, 0.8366, 5.2291)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0742 #2A4207
analogous
#070C42 #1F0742 #3D0742
triadic
#1F0742 #421F07 #07421F
tetradic
#1F0742 #42070C #2A4207 #07423D
square
#1F0742 #42070C #2A4207 #07423D
split-complementary
#1F0742 #423D07 #0C4207
monochromatic
#0D031C #0D031C #1F0742 #390D79 #5313B1

Accessibility & contrast

On white

17.99
#1F0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0742
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0742#FFFFFF#000000##FFFFFF
##1F07421.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#151825
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f0742;
/* rgb */ color: rgb(31, 7, 66);
/* oklch */ color: oklch(21.5% 0.101 294.8);
Tailwind
colors: {
  custom: {
    50: '#604a77',
    500: '#1f0742',
    950: '#000000',
  },
}
SCSS
$custom: #1f0742;
$custom-light: #604a77;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0742",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 264.407,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21548,
    "c": 0.10141,
    "h": 294.8
  },
  "luminance": 0.00837
}

Semantic roles & 50–950 ramp

primary
#1F0742
secondary
#5B8124
accent
#F731A6
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0742

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

Preview Lab → · Contrast checker → · Palette generator →

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