#1F0843#1F0843

#1F0843 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.101 H 293.9°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#1F0843
RGBrgb(31, 8, 67)
HSLhsl(263, 79%, 15%)
HSVhsv(263, 88%, 26%)
CMYKcmyk(53.7%, 88.1%, 0%, 73.7%)
CIE-LABlab(7.86, 27.00, -32.29)
CIE-LCHlch(7.86, 42.09, 309.90°)
OKLaboklab(21.8% 0.0411 -0.0927)
OKLCHoklch(21.8% 0.101 293.9)
XYZxyz(1.6647, 0.8702, 5.3893)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0843 #2C4308
analogous
#080E43 #1F0843 #3D0843
triadic
#1F0843 #431F08 #08431F
tetradic
#1F0843 #43080E #2C4308 #08433D
square
#1F0843 #43080E #2C4308 #08433D
split-complementary
#1F0843 #433D08 #0E4308
monochromatic
#0D031B #0D031B #1F0843 #380F7A #5215B0

Accessibility & contrast

On white

17.89
#1F0843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0843
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0843#FFFFFF#000000##FFFFFF
##1F08431.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001845
Deuteranopia (green-blind)
#001642
Tritanopia (blue-blind)
#141925
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f0843;
/* rgb */ color: rgb(31, 8, 67);
/* oklch */ color: oklch(21.8% 0.101 293.9);
Tailwind
colors: {
  custom: {
    50: '#604a78',
    500: '#1f0843',
    950: '#000000',
  },
}
SCSS
$custom: #1f0843;
$custom-light: #604a78;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0843",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 263.39,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21798,
    "c": 0.10138,
    "h": 293.9
  },
  "luminance": 0.0087
}

Semantic roles & 50–950 ramp

primary
#1F0843
secondary
#5E8125
accent
#F533A9
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0843

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

Preview Lab → · Contrast checker → · Palette generator →

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