#1F0D2D#1F0D2D

#1F0D2D is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.5% C 0.064 H 307.7°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#1F0D2D
RGBrgb(31, 13, 45)
HSLhsl(274, 55%, 11%)
HSVhsv(274, 71%, 18%)
CMYKcmyk(31.1%, 71.1%, 0%, 82.4%)
CIE-LABlab(6.94, 16.97, -17.80)
CIE-LCHlch(6.94, 24.59, 313.63°)
OKLaboklab(20.47% 0.0389 -0.0504)
OKLCHoklch(20.47% 0.064 307.7)
XYZxyz(1.1826, 0.7686, 2.5682)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D2D #1B2D0D
analogous
#0F0D2D #1F0D2D #2D0D2B
triadic
#1F0D2D #2D1F0D #0D2D1F
tetradic
#1F0D2D #2D0F0D #1B2D0D #0D2B2D
square
#1F0D2D #2D0F0D #1B2D0D #0D2B2D
split-complementary
#1F0D2D #2B2D0D #0D2D0F
monochromatic
#100718 #100718 #1F0D2D #401B5C #60288C

Accessibility & contrast

On white

18.20
#1F0D2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1F0D2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0D2D
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D2D#FFFFFF#000000##FFFFFF
##1F0D2D1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03152E
Deuteranopia (green-blind)
#08162C
Tritanopia (blue-blind)
#1D131B
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0d2d;
/* rgb */ color: rgb(31, 13, 45);
/* oklch */ color: oklch(20.5% 0.064 307.7);
Tailwind
colors: {
  custom: {
    50: '#5c4c66',
    500: '#1f0d2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d2d;
$custom-light: #5c4c66;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d2d",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 45
  },
  "hsl": {
    "h": 273.75,
    "s": 55.172,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20466,
    "c": 0.06366,
    "h": 307.7
  },
  "luminance": 0.00769
}

Semantic roles & 50–950 ramp

primary
#1F0D2D
secondary
#47682E
accent
#DF498B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F0D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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