#2F1131#2F1131

#2F1131 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.070 H 325.0°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#2F1131
RGBrgb(47, 17, 49)
HSLhsl(296, 48%, 13%)
HSVhsv(296, 65%, 19%)
CMYKcmyk(4.1%, 65.3%, 0%, 80.8%)
CIE-LABlab(10.76, 21.01, -14.55)
CIE-LCHlch(10.76, 25.56, 325.31°)
OKLaboklab(23.95% 0.0575 -0.0402)
OKLCHoklch(23.95% 0.07 325)
XYZxyz(1.9271, 1.2271, 3.0405)
Luminance0.0123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1131 #133111
analogous
#1F1131 #2F1131 #311123
triadic
#2F1131 #312F11 #11312F
tetradic
#2F1131 #311F11 #133111 #112331
square
#2F1131 #311F11 #133111 #112331
split-complementary
#2F1131 #233111 #11311F
monochromatic
#160817 #160817 #2F1131 #5B215E #86318C

Accessibility & contrast

On white

16.86
#2F1131 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2F1131 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1131
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1131#FFFFFF#000000##FFFFFF
##2F11311.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1B32
Deuteranopia (green-blind)
#161E30
Tritanopia (blue-blind)
#30151F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f1131;
/* rgb */ color: rgb(47, 17, 49);
/* oklch */ color: oklch(23.9% 0.070 325.0);
Tailwind
colors: {
  custom: {
    50: '#695169',
    500: '#2f1131',
    950: '#000000',
  },
}
SCSS
$custom: #2f1131;
$custom-light: #695169;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1131",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 49
  },
  "hsl": {
    "h": 296.25,
    "s": 48.485,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23946,
    "c": 0.0701,
    "h": 325
  },
  "luminance": 0.01227
}

Semantic roles & 50–950 ramp

primary
#2F1131
secondary
#376A34
accent
#D85058
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2F1131

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

Preview Lab → · Contrast checker → · Palette generator →

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