#1F0B45#1F0B45

#1F0B45 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.100 H 292.0°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#1F0B45
RGBrgb(31, 11, 69)
HSLhsl(261, 73%, 16%)
HSVhsv(261, 84%, 27%)
CMYKcmyk(55.1%, 84.1%, 0%, 72.9%)
CIE-LABlab(8.66, 25.97, -32.40)
CIE-LCHlch(8.66, 41.52, 308.71°)
OKLaboklab(22.42% 0.0375 -0.093)
OKLCHoklch(22.42% 0.1 292)
XYZxyz(1.7586, 0.9603, 5.7218)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B45 #31450B
analogous
#0B1445 #1F0B45 #3C0B45
triadic
#1F0B45 #451F0B #0B451F
tetradic
#1F0B45 #450B14 #31450B #0B453C
square
#1F0B45 #450B14 #31450B #0B453C
split-complementary
#1F0B45 #453C0B #14450B
monochromatic
#0C041A #0C041A #1F0B45 #37137A #4E1CAF

Accessibility & contrast

On white

17.62
#1F0B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1F0B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0B45
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0B45#FFFFFF#000000##FFFFFF
##1F0B451.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A47
Deuteranopia (green-blind)
#001844
Tritanopia (blue-blind)
#131B27
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0b45;
/* rgb */ color: rgb(31, 11, 69);
/* oklch */ color: oklch(22.4% 0.100 292.0);
Tailwind
colors: {
  custom: {
    50: '#604c79',
    500: '#1f0b45',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b45;
$custom-light: #604c79;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b45",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 260.69,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.22421,
    "c": 0.10029,
    "h": 292
  },
  "luminance": 0.0096
}

Semantic roles & 50–950 ramp

primary
#1F0B45
secondary
#63812A
accent
#EF39B0
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0B45

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

Preview Lab → · Contrast checker → · Palette generator →

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