#2F152F#2F152F

#2F152F is a very dark, muted purple. Relative luminance 0.013; OKLCH L 24.5% C 0.060 H 327.2°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#2F152F
RGBrgb(47, 21, 47)
HSLhsl(300, 38%, 13%)
HSVhsv(300, 55%, 18%)
CMYKcmyk(0%, 55.3%, 0%, 81.6%)
CIE-LABlab(11.59, 18.02, -11.78)
CIE-LCHlch(11.59, 21.53, 326.84°)
OKLaboklab(24.53% 0.05 -0.0322)
OKLCHoklch(24.53% 0.06 327.2)
XYZxyz(1.9535, 1.3460, 2.8457)
Luminance0.0135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F152F #152F15
analogous
#22152F #2F152F #2F1522
triadic
#2F152F #2F2F15 #152F2F
tetradic
#2F152F #2F2215 #152F15 #15222F
square
#2F152F #2F2215 #152F15 #15222F
split-complementary
#2F152F #222F15 #152F22
monochromatic
#150915 #150915 #2F152F #592859 #843B84

Accessibility & contrast

On white

16.55
#2F152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F152F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F152F
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F152F#FFFFFF#000000##FFFFFF
##2F152F1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131D30
Deuteranopia (green-blind)
#1A202E
Tritanopia (blue-blind)
#30181F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f152f;
/* rgb */ color: rgb(47, 21, 47);
/* oklch */ color: oklch(24.5% 0.060 327.2);
Tailwind
colors: {
  custom: {
    50: '#685367',
    500: '#2f152f',
    950: '#000000',
  },
}
SCSS
$custom: #2f152f;
$custom-light: #685367;
$custom-dark: #000000;
JSON
{
  "hex": "#2f152f",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 300,
    "s": 38.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24527,
    "c": 0.05953,
    "h": 327.2
  },
  "luminance": 0.01346
}

Semantic roles & 50–950 ramp

primary
#2F152F
secondary
#3B653B
accent
#CE5A5A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2F152F

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

Preview Lab → · Contrast checker → · Palette generator →

#2F152F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva