#1F0B41#1F0B41

#1F0B41 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.095 H 294.0°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#1F0B41
RGBrgb(31, 11, 65)
HSLhsl(262, 71%, 15%)
HSVhsv(262, 83%, 25%)
CMYKcmyk(52.3%, 83.1%, 0%, 74.5%)
CIE-LABlab(8.24, 24.69, -30.26)
CIE-LCHlch(8.24, 39.05, 309.22°)
OKLaboklab(22% 0.0387 -0.0867)
OKLCHoklch(22% 0.095 294)
XYZxyz(1.6386, 0.9123, 5.0897)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B41 #2D410B
analogous
#0B1241 #1F0B41 #3A0B41
triadic
#1F0B41 #411F0B #0B411F
tetradic
#1F0B41 #410B12 #2D410B #0B413A
square
#1F0B41 #410B12 #2D410B #0B413A
split-complementary
#1F0B41 #413A0B #12410B
monochromatic
#0C041A #0C041A #1F0B41 #381475 #511DAA

Accessibility & contrast

On white

17.76
#1F0B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0B41
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0B41#FFFFFF#000000##FFFFFF
##1F0B411.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001740
Tritanopia (blue-blind)
#151925
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0b41;
/* rgb */ color: rgb(31, 11, 65);
/* oklch */ color: oklch(22.0% 0.095 294.0);
Tailwind
colors: {
  custom: {
    50: '#5f4c76',
    500: '#1f0b41',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b41;
$custom-light: #5f4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b41",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 65
  },
  "hsl": {
    "h": 262.222,
    "s": 71.053,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21999,
    "c": 0.09495,
    "h": 294
  },
  "luminance": 0.00912
}

Semantic roles & 50–950 ramp

primary
#1F0B41
secondary
#5F7E2A
accent
#EE3AAB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0B41

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

Preview Lab → · Contrast checker → · Palette generator →

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