#1F0B40#1F0B40

#1F0B40 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.094 H 294.6°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#1F0B40
RGBrgb(31, 11, 64)
HSLhsl(263, 71%, 15%)
HSVhsv(263, 83%, 25%)
CMYKcmyk(51.6%, 82.8%, 0%, 74.9%)
CIE-LABlab(8.14, 24.37, -29.71)
CIE-LCHlch(8.14, 38.43, 309.36°)
OKLaboklab(21.9% 0.039 -0.0851)
OKLCHoklch(21.9% 0.094 294.6)
XYZxyz(1.6099, 0.9008, 4.9385)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B40 #2C400B
analogous
#0B1140 #1F0B40 #3A0B40
triadic
#1F0B40 #401F0B #0B401F
tetradic
#1F0B40 #400B11 #2C400B #0B403A
square
#1F0B40 #400B11 #2C400B #0B403A
split-complementary
#1F0B40 #403A0B #11400B
monochromatic
#0D041A #0D041A #1F0B40 #381474 #521DA8

Accessibility & contrast

On white

17.79
#1F0B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0B40
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0B40#FFFFFF#000000##FFFFFF
##1F0B401.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#161924
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0b40;
/* rgb */ color: rgb(31, 11, 64);
/* oklch */ color: oklch(21.9% 0.094 294.6);
Tailwind
colors: {
  custom: {
    50: '#5f4c75',
    500: '#1f0b40',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b40;
$custom-light: #5f4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b40",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 262.642,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21895,
    "c": 0.0936,
    "h": 294.6
  },
  "luminance": 0.00901
}

Semantic roles & 50–950 ramp

primary
#1F0B40
secondary
#5E7D2A
accent
#ED3AAA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0B40

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

Preview Lab → · Contrast checker → · Palette generator →

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