#1F0E2E#1F0E2E

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

Color values

HEX#1F0E2E
RGBrgb(31, 14, 46)
HSLhsl(272, 53%, 12%)
HSVhsv(272, 70%, 18%)
CMYKcmyk(32.6%, 69.6%, 0%, 82%)
CIE-LABlab(7.25, 16.70, -18.06)
CIE-LCHlch(7.25, 24.59, 312.76°)
OKLaboklab(20.74% 0.0373 -0.051)
OKLCHoklch(20.74% 0.063 306.2)
XYZxyz(1.2151, 0.8026, 2.6751)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E2E #1D2E0E
analogous
#0F0E2E #1F0E2E #2E0E2D
triadic
#1F0E2E #2E1F0E #0E2E1F
tetradic
#1F0E2E #2E0F0E #1D2E0E #0E2D2E
square
#1F0E2E #2E0F0E #1D2E0E #0E2D2E
split-complementary
#1F0E2E #2D2E0E #0E2E0F
monochromatic
#100717 #100717 #1F0E2E #3F1C5D #5E2B8C

Accessibility & contrast

On white

18.09
#1F0E2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E2E
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E2E#FFFFFF#000000##FFFFFF
##1F0E2E1.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04152F
Deuteranopia (green-blind)
#09162D
Tritanopia (blue-blind)
#1D141C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f0e2e;
/* rgb */ color: rgb(31, 14, 46);
/* oklch */ color: oklch(20.7% 0.063 306.2);
Tailwind
colors: {
  custom: {
    50: '#5c4d67',
    500: '#1f0e2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e2e;
$custom-light: #5c4d67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e2e",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 46
  },
  "hsl": {
    "h": 271.875,
    "s": 53.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20735,
    "c": 0.06318,
    "h": 306.2
  },
  "luminance": 0.00803
}

Semantic roles & 50–950 ramp

primary
#1F0E2E
secondary
#4A6830
accent
#DD4B8F
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F0E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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