#1F0D3D#1F0D3D

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

Color values

HEX#1F0D3D
RGBrgb(31, 13, 61)
HSLhsl(263, 65%, 15%)
HSVhsv(263, 79%, 24%)
CMYKcmyk(49.2%, 78.7%, 0%, 76.1%)
CIE-LABlab(8.27, 22.21, -27.35)
CIE-LCHlch(8.27, 35.23, 309.08°)
OKLaboklab(21.9% 0.0373 -0.0782)
OKLCHoklch(21.9% 0.087 295.5)
XYZxyz(1.5511, 0.9160, 4.5091)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D3D #2B3D0D
analogous
#0D133D #1F0D3D #370D3D
triadic
#1F0D3D #3D1F0D #0D3D1F
tetradic
#1F0D3D #3D0D13 #2B3D0D #0D3D37
square
#1F0D3D #3D0D13 #2B3D0D #0D3D37
split-complementary
#1F0D3D #3D370D #133D0D
monochromatic
#0D0519 #0D0519 #1F0D3D #39186F #5223A2

Accessibility & contrast

On white

17.75
#1F0D3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0D3D
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D3D#FFFFFF#000000##FFFFFF
##1F0D3D1.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183E
Deuteranopia (green-blind)
#00173C
Tritanopia (blue-blind)
#171923
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0d3d;
/* rgb */ color: rgb(31, 13, 61);
/* oklch */ color: oklch(21.9% 0.087 295.5);
Tailwind
colors: {
  custom: {
    50: '#5e4d73',
    500: '#1f0d3d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d3d;
$custom-light: #5e4d73;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d3d",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 61
  },
  "hsl": {
    "h": 262.5,
    "s": 64.865,
    "l": 14.51
  },
  "oklch": {
    "l": 0.219,
    "c": 0.08664,
    "h": 295.5
  },
  "luminance": 0.00916
}

Semantic roles & 50–950 ramp

primary
#1F0D3D
secondary
#5C792D
accent
#E840A9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0D3D

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

Preview Lab → · Contrast checker → · Palette generator →

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