#1F0E2D#1F0E2D

#1F0E2D is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.7% C 0.062 H 307.1°. Best body text is #FFFFFF at 18.12:1 contrast (WCAG AA passes).

Color values

HEX#1F0E2D
RGBrgb(31, 14, 45)
HSLhsl(273, 53%, 12%)
HSVhsv(273, 69%, 18%)
CMYKcmyk(31.1%, 68.9%, 0%, 82.4%)
CIE-LABlab(7.18, 16.37, -17.42)
CIE-LCHlch(7.18, 23.91, 313.22°)
OKLaboklab(20.66% 0.0373 -0.0492)
OKLCHoklch(20.66% 0.062 307.1)
XYZxyz(1.1957, 0.7949, 2.5725)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E2D #1C2D0E
analogous
#100E2D #1F0E2D #2D0E2C
triadic
#1F0E2D #2D1F0E #0E2D1F
tetradic
#1F0E2D #2D100E #1C2D0E #0E2C2D
square
#1F0E2D #2D100E #1C2D0E #0E2C2D
split-complementary
#1F0E2D #2C2D0E #0E2D10
monochromatic
#100717 #100717 #1F0E2D #3F1D5C #5F2B8A

Accessibility & contrast

On white

18.12
#1F0E2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E2D
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E2D#FFFFFF#000000##FFFFFF
##1F0E2D1.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04152E
Deuteranopia (green-blind)
#09162C
Tritanopia (blue-blind)
#1D141B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f0e2d;
/* rgb */ color: rgb(31, 14, 45);
/* oklch */ color: oklch(20.7% 0.062 307.1);
Tailwind
colors: {
  custom: {
    50: '#5c4d66',
    500: '#1f0e2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e2d;
$custom-light: #5c4d66;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e2d",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 45
  },
  "hsl": {
    "h": 272.903,
    "s": 52.542,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20655,
    "c": 0.0617,
    "h": 307.1
  },
  "luminance": 0.00795
}

Semantic roles & 50–950 ramp

primary
#1F0E2D
secondary
#496730
accent
#DC4C8D
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F0E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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