#2F0331#2F0331

#2F0331 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.0% C 0.094 H 326.3°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#2F0331
RGBrgb(47, 3, 49)
HSLhsl(297, 88%, 10%)
HSVhsv(297, 94%, 19%)
CMYKcmyk(4.1%, 93.9%, 0%, 80.8%)
CIE-LABlab(8.05, 28.59, -18.84)
CIE-LCHlch(8.05, 34.24, 326.63°)
OKLaboklab(22% 0.0786 -0.0525)
OKLCHoklch(22% 0.094 326.3)
XYZxyz(1.7592, 0.8913, 2.9845)
Luminance0.0089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0331 #053103
analogous
#180331 #2F0331 #31031C
triadic
#2F0331 #312F03 #03312F
tetradic
#2F0331 #311803 #053103 #031C31
square
#2F0331 #311803 #053103 #031C31
split-complementary
#2F0331 #1C3103 #033118
monochromatic
#1C021D #1C021D #2F0331 #66076B #9E0AA4

Accessibility & contrast

On white

17.82
#2F0331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2F0331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0331
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0331#FFFFFF#000000##FFFFFF
##2F03311.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001432
Deuteranopia (green-blind)
#0E1A30
Tritanopia (blue-blind)
#300A1A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2f0331;
/* rgb */ color: rgb(47, 3, 49);
/* oklch */ color: oklch(22.0% 0.094 326.3);
Tailwind
colors: {
  custom: {
    50: '#6a4969',
    500: '#2f0331',
    950: '#000000',
  },
}
SCSS
$custom: #2f0331;
$custom-light: #6a4969;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0331",
  "rgb": {
    "r": 47,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 297.391,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21997,
    "c": 0.09447,
    "h": 326.3
  },
  "luminance": 0.00891
}

Semantic roles & 50–950 ramp

primary
#2F0331
secondary
#1F741B
accent
#FF2932
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #2F0331

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

Preview Lab → · Contrast checker → · Palette generator →

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