#1F0B3D#1F0B3D

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

Color values

HEX#1F0B3D
RGBrgb(31, 11, 61)
HSLhsl(264, 69%, 14%)
HSVhsv(264, 82%, 24%)
CMYKcmyk(49.2%, 82%, 0%, 76.1%)
CIE-LABlab(7.84, 23.42, -28.06)
CIE-LCHlch(7.84, 36.55, 309.85°)
OKLaboklab(21.59% 0.0397 -0.0803)
OKLCHoklch(21.59% 0.09 296.3)
XYZxyz(1.5268, 0.8675, 4.5010)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B3D #293D0B
analogous
#0B103D #1F0B3D #380B3D
triadic
#1F0B3D #3D1F0B #0B3D1F
tetradic
#1F0B3D #3D0B10 #293D0B #0B3D38
square
#1F0B3D #3D0B10 #293D0B #0B3D38
split-complementary
#1F0B3D #3D380B #103D0B
monochromatic
#0D051A #0D051A #1F0B3D #391471 #541EA5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F0B3D#FFFFFF#000000##FFFFFF
##1F0B3D1.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)
#00173E
Deuteranopia (green-blind)
#00173C
Tritanopia (blue-blind)
#171823
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f0b3d;
/* rgb */ color: rgb(31, 11, 61);
/* oklch */ color: oklch(21.6% 0.090 296.3);
Tailwind
colors: {
  custom: {
    50: '#5e4c73',
    500: '#1f0b3d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b3d;
$custom-light: #5e4c73;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b3d",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 61
  },
  "hsl": {
    "h": 264,
    "s": 69.444,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21589,
    "c": 0.08956,
    "h": 296.3
  },
  "luminance": 0.00868
}

Semantic roles & 50–950 ramp

primary
#1F0B3D
secondary
#5A7A2A
accent
#EC3CA6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0B3D

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

Preview Lab → · Contrast checker → · Palette generator →

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