#291F2F#291F2F

#291F2F is a dark, muted violet. Relative luminance 0.017; OKLCH L 25.8% C 0.033 H 312.5°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#291F2F
RGBrgb(41, 31, 47)
HSLhsl(278, 21%, 15%)
HSVhsv(278, 34%, 18%)
CMYKcmyk(12.8%, 34%, 0%, 81.6%)
CIE-LABlab(13.57, 8.65, -8.79)
CIE-LCHlch(13.57, 12.33, 314.52°)
OKLaboklab(25.83% 0.022 -0.024)
OKLCHoklch(25.83% 0.033 312.5)
XYZxyz(1.9174, 1.6567, 2.9075)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F2F #252F1F
analogous
#211F2F #291F2F #2F1F2D
triadic
#291F2F #2F291F #1F2F29
tetradic
#291F2F #2F211F #252F1F #1F2D2F
square
#291F2F #2F211F #252F1F #1F2D2F
split-complementary
#291F2F #2D2F1F #1F2F21
monochromatic
#100C12 #100C12 #291F2F #493754 #695079

Accessibility & contrast

On white

15.77
#291F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#291F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F2F
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F2F#FFFFFF#000000##FFFFFF
##291F2F1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2230
Deuteranopia (green-blind)
#1F232E
Tritanopia (blue-blind)
#292125
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #291f2f;
/* rgb */ color: rgb(41, 31, 47);
/* oklch */ color: oklch(25.8% 0.033 312.5);
Tailwind
colors: {
  custom: {
    50: '#635a67',
    500: '#291f2f',
    950: '#000000',
  },
}
SCSS
$custom: #291f2f;
$custom-light: #635a67;
$custom-dark: #000000;
JSON
{
  "hex": "#291f2f",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 47
  },
  "hsl": {
    "h": 277.5,
    "s": 20.513,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25831,
    "c": 0.03255,
    "h": 312.5
  },
  "luminance": 0.01657
}

Semantic roles & 50–950 ramp

primary
#291F2F
secondary
#526149
accent
#BD6B8A
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #291F2F

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

Preview Lab → · Contrast checker → · Palette generator →

#291F2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva