#1F0B2D#1F0B2D

#1F0B2D is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.067 H 308.6°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#1F0B2D
RGBrgb(31, 11, 45)
HSLhsl(275, 61%, 11%)
HSVhsv(275, 76%, 18%)
CMYKcmyk(31.1%, 75.6%, 0%, 82.4%)
CIE-LABlab(6.50, 18.06, -18.50)
CIE-LCHlch(6.50, 25.85, 314.32°)
OKLaboklab(20.11% 0.0421 -0.0527)
OKLCHoklch(20.11% 0.067 308.6)
XYZxyz(1.1583, 0.7201, 2.5601)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B2D #192D0B
analogous
#0E0B2D #1F0B2D #2D0B2A
triadic
#1F0B2D #2D1F0B #0B2D1F
tetradic
#1F0B2D #2D0E0B #192D0B #0B2A2D
square
#1F0B2D #2D0E0B #192D0B #0B2A2D
split-complementary
#1F0B2D #2A2D0B #0B2D0E
monochromatic
#110619 #110619 #1F0B2D #41175E #63238F

Accessibility & contrast

On white

18.36
#1F0B2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1F0B2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0B2D
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0B2D#FFFFFF#000000##FFFFFF
##1F0B2D1.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142E
Deuteranopia (green-blind)
#06152C
Tritanopia (blue-blind)
#1D121A
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0b2d;
/* rgb */ color: rgb(31, 11, 45);
/* oklch */ color: oklch(20.1% 0.067 308.6);
Tailwind
colors: {
  custom: {
    50: '#5c4b66',
    500: '#1f0b2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b2d;
$custom-light: #5c4b66;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b2d",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 45
  },
  "hsl": {
    "h": 275.294,
    "s": 60.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20108,
    "c": 0.06746,
    "h": 308.6
  },
  "luminance": 0.0072
}

Semantic roles & 50–950 ramp

primary
#1F0B2D
secondary
#44692A
accent
#E44486
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F0B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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