#1F0D2F#1F0D2F

#1F0D2F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.6% C 0.067 H 305.8°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#1F0D2F
RGBrgb(31, 13, 47)
HSLhsl(272, 57%, 12%)
HSVhsv(272, 72%, 18%)
CMYKcmyk(34%, 72.3%, 0%, 81.6%)
CIE-LABlab(7.09, 17.63, -19.06)
CIE-LCHlch(7.09, 25.96, 312.76°)
OKLaboklab(20.63% 0.0389 -0.054)
OKLCHoklch(20.63% 0.067 305.8)
XYZxyz(1.2220, 0.7844, 2.7758)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D2F #1D2F0D
analogous
#0E0D2F #1F0D2F #2F0D2E
triadic
#1F0D2F #2F1F0D #0D2F1F
tetradic
#1F0D2F #2F0E0D #1D2F0D #0D2E2F
square
#1F0D2F #2F0E0D #1D2F0D #0D2E2F
split-complementary
#1F0D2F #2E2F0D #0D2F0E
monochromatic
#100718 #100718 #1F0D2F #3F1A5F #5E288F

Accessibility & contrast

On white

18.15
#1F0D2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1F0D2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0D2F
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D2F#FFFFFF#000000##FFFFFF
##1F0D2F1.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021530
Deuteranopia (green-blind)
#07162E
Tritanopia (blue-blind)
#1C141C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f0d2f;
/* rgb */ color: rgb(31, 13, 47);
/* oklch */ color: oklch(20.6% 0.067 305.8);
Tailwind
colors: {
  custom: {
    50: '#5c4c68',
    500: '#1f0d2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d2f;
$custom-light: #5c4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d2f",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 47
  },
  "hsl": {
    "h": 271.765,
    "s": 56.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.2063,
    "c": 0.06657,
    "h": 305.8
  },
  "luminance": 0.00784
}

Semantic roles & 50–950 ramp

primary
#1F0D2F
secondary
#4A6A2E
accent
#E0488F
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F0D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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