#2F152C#2F152C

#2F152C is a very dark, muted purple. Relative luminance 0.013; OKLCH L 24.4% C 0.056 H 331.5°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#2F152C
RGBrgb(47, 21, 44)
HSLhsl(307, 38%, 13%)
HSVhsv(307, 55%, 18%)
CMYKcmyk(0%, 55.3%, 6.4%, 81.6%)
CIE-LABlab(11.43, 17.34, -9.83)
CIE-LCHlch(11.43, 19.93, 330.44°)
OKLaboklab(24.36% 0.0493 -0.0267)
OKLCHoklch(24.36% 0.056 331.5)
XYZxyz(1.8951, 1.3226, 2.5379)
Luminance0.0132 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F152C #152F18
analogous
#25152F #2F152C #2F151F
triadic
#2F152C #2C2F15 #152C2F
tetradic
#2F152C #2F2515 #152F18 #151F2F
square
#2F152C #2F2515 #152F18 #151F2F
split-complementary
#2F152C #1F2F15 #152F25
monochromatic
#150914 #150914 #2F152C #592854 #843B7B

Accessibility & contrast

On white

16.61
#2F152C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2F152C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F152C
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F152C#FFFFFF#000000##FFFFFF
##2F152C1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141C2D
Deuteranopia (green-blind)
#1B202B
Tritanopia (blue-blind)
#31171E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f152c;
/* rgb */ color: rgb(47, 21, 44);
/* oklch */ color: oklch(24.4% 0.056 331.5);
Tailwind
colors: {
  custom: {
    50: '#685365',
    500: '#2f152c',
    950: '#000000',
  },
}
SCSS
$custom: #2f152c;
$custom-light: #685365;
$custom-dark: #000000;
JSON
{
  "hex": "#2f152c",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 44
  },
  "hsl": {
    "h": 306.923,
    "s": 38.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24355,
    "c": 0.05604,
    "h": 331.5
  },
  "luminance": 0.01323
}

Semantic roles & 50–950 ramp

primary
#2F152C
secondary
#3B653F
accent
#CE675A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060205
muted
#7A787A

Preview Lab

Preview with #2F152C

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

Preview Lab → · Contrast checker → · Palette generator →

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