#2F1031#2F1031

#2F1031 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.072 H 325.2°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#2F1031
RGBrgb(47, 16, 49)
HSLhsl(296, 51%, 13%)
HSVhsv(296, 67%, 19%)
CMYKcmyk(4.1%, 67.3%, 0%, 80.8%)
CIE-LABlab(10.53, 21.61, -14.90)
CIE-LCHlch(10.53, 26.25, 325.42°)
OKLaboklab(23.78% 0.0591 -0.0411)
OKLCHoklch(23.78% 0.072 325.2)
XYZxyz(1.9119, 1.1968, 3.0354)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1031 #123110
analogous
#1E1031 #2F1031 #311022
triadic
#2F1031 #312F10 #10312F
tetradic
#2F1031 #311E10 #123110 #102231
square
#2F1031 #311E10 #123110 #102231
split-complementary
#2F1031 #223110 #10311E
monochromatic
#160817 #160817 #2F1031 #5B1F5F #882E8D

Accessibility & contrast

On white

16.94
#2F1031 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2F1031 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1031
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1031#FFFFFF#000000##FFFFFF
##2F10311.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1A32
Deuteranopia (green-blind)
#161E30
Tritanopia (blue-blind)
#30141E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f1031;
/* rgb */ color: rgb(47, 16, 49);
/* oklch */ color: oklch(23.8% 0.072 325.2);
Tailwind
colors: {
  custom: {
    50: '#695069',
    500: '#2f1031',
    950: '#000000',
  },
}
SCSS
$custom: #2f1031;
$custom-light: #695069;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1031",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 49
  },
  "hsl": {
    "h": 296.364,
    "s": 50.769,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23783,
    "c": 0.07204,
    "h": 325.2
  },
  "luminance": 0.01197
}

Semantic roles & 50–950 ramp

primary
#2F1031
secondary
#366A33
accent
#DA4E56
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2F1031

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

Preview Lab → · Contrast checker → · Palette generator →

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