#301F2F#301F2F

#301F2F is a dark, muted purple. Relative luminance 0.018; OKLCH L 26.7% C 0.038 H 328.6°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#301F2F
RGBrgb(48, 31, 47)
HSLhsl(304, 22%, 15%)
HSVhsv(304, 35%, 19%)
CMYKcmyk(0%, 35.4%, 2.1%, 81.2%)
CIE-LABlab(14.48, 11.60, -7.33)
CIE-LCHlch(14.48, 13.72, 327.71°)
OKLaboklab(26.73% 0.0324 -0.0198)
OKLCHoklch(26.73% 0.038 328.6)
XYZxyz(2.2220, 1.8137, 2.9218)
Luminance0.0181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F2F #1F3020
analogous
#281F30 #301F2F #301F26
triadic
#301F2F #2F301F #1F2F30
tetradic
#301F2F #30281F #1F3020 #1F2630
square
#301F2F #30281F #1F3020 #1F2630
split-complementary
#301F2F #26301F #1F3028
monochromatic
#130C12 #130C12 #301F2F #553753 #7A4F78

Accessibility & contrast

On white

15.41
#301F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#301F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F2F
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F2F#FFFFFF#000000##FFFFFF
##301F2F1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2330
Deuteranopia (green-blind)
#22252E
Tritanopia (blue-blind)
#312025
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301f2f;
/* rgb */ color: rgb(48, 31, 47);
/* oklch */ color: oklch(26.7% 0.038 328.6);
Tailwind
colors: {
  custom: {
    50: '#685a67',
    500: '#301f2f',
    950: '#000000',
  },
}
SCSS
$custom: #301f2f;
$custom-light: #685a67;
$custom-dark: #000000;
JSON
{
  "hex": "#301f2f",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 47
  },
  "hsl": {
    "h": 303.529,
    "s": 21.519,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26731,
    "c": 0.03793,
    "h": 328.6
  },
  "luminance": 0.01814
}

Semantic roles & 50–950 ramp

primary
#301F2F
secondary
#49624A
accent
#BE6F6A
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060406
muted
#7A797A

Preview Lab

Preview with #301F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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