#1F0842#1F0842

#1F0842 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.100 H 294.5°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#1F0842
RGBrgb(31, 8, 66)
HSLhsl(264, 78%, 15%)
HSVhsv(264, 88%, 26%)
CMYKcmyk(53%, 87.9%, 0%, 74.1%)
CIE-LABlab(7.75, 26.69, -31.76)
CIE-LCHlch(7.75, 41.48, 310.04°)
OKLaboklab(21.69% 0.0415 -0.0911)
OKLCHoklch(21.69% 0.1 294.5)
XYZxyz(1.6350, 0.8583, 5.2327)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0842 #2B4208
analogous
#080E42 #1F0842 #3C0842
triadic
#1F0842 #421F08 #08421F
tetradic
#1F0842 #42080E #2B4208 #08423C
square
#1F0842 #42080E #2B4208 #08423C
split-complementary
#1F0842 #423C08 #0E4208
monochromatic
#0D031B #0D031B #1F0842 #390F79 #5215AF

Accessibility & contrast

On white

17.92
#1F0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0842
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0842#FFFFFF#000000##FFFFFF
##1F08421.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0842;
/* rgb */ color: rgb(31, 8, 66);
/* oklch */ color: oklch(21.7% 0.100 294.5);
Tailwind
colors: {
  custom: {
    50: '#5f4a77',
    500: '#1f0842',
    950: '#000000',
  },
}
SCSS
$custom: #1f0842;
$custom-light: #5f4a77;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0842",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 263.793,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.21689,
    "c": 0.1001,
    "h": 294.5
  },
  "luminance": 0.00858
}

Semantic roles & 50–950 ramp

primary
#1F0842
secondary
#5C8025
accent
#F533A8
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0842

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

Preview Lab → · Contrast checker → · Palette generator →

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