#1F0E2F#1F0E2F

#1F0E2F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.065 H 305.2°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#1F0E2F
RGBrgb(31, 14, 47)
HSLhsl(271, 54%, 12%)
HSVhsv(271, 70%, 18%)
CMYKcmyk(34%, 70.2%, 0%, 81.6%)
CIE-LABlab(7.32, 17.02, -18.68)
CIE-LCHlch(7.32, 25.28, 312.34°)
OKLaboklab(20.82% 0.0373 -0.0528)
OKLCHoklch(20.82% 0.065 305.2)
XYZxyz(1.2351, 0.8106, 2.7802)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E2F #1E2F0E
analogous
#0F0E2F #1F0E2F #2F0E2F
triadic
#1F0E2F #2F1F0E #0E2F1F
tetradic
#1F0E2F #2F0F0E #1E2F0E #0E2F2F
square
#1F0E2F #2F0F0E #1E2F0E #0E2F2F
split-complementary
#1F0E2F #2F2F0E #0E2F0F
monochromatic
#100718 #100718 #1F0E2F #3E1C5E #5D2A8D

Accessibility & contrast

On white

18.07
#1F0E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E2F
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E2F#FFFFFF#000000##FFFFFF
##1F0E2F1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0e2f;
/* rgb */ color: rgb(31, 14, 47);
/* oklch */ color: oklch(20.8% 0.065 305.2);
Tailwind
colors: {
  custom: {
    50: '#5c4d68',
    500: '#1f0e2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e2f;
$custom-light: #5c4d68;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e2f",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 47
  },
  "hsl": {
    "h": 270.909,
    "s": 54.098,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20815,
    "c": 0.06466,
    "h": 305.2
  },
  "luminance": 0.00811
}

Semantic roles & 50–950 ramp

primary
#1F0E2F
secondary
#4C692F
accent
#DD4A92
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F0E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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