#2F042D#2F042D

#2F042D is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.8% C 0.089 H 330.2°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#2F042D
RGBrgb(47, 4, 45)
HSLhsl(303, 84%, 10%)
HSVhsv(303, 91%, 18%)
CMYKcmyk(0%, 91.5%, 4.3%, 81.6%)
CIE-LABlab(7.96, 27.23, -16.02)
CIE-LCHlch(7.96, 31.59, 329.54°)
OKLaboklab(21.83% 0.0772 -0.0443)
OKLCHoklch(21.83% 0.089 330.2)
XYZxyz(1.6894, 0.8808, 2.5631)
Luminance0.0088 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F042D #042F06
analogous
#1C042F #2F042D #2F0417
triadic
#2F042D #2D2F04 #042D2F
tetradic
#2F042D #2F1C04 #042F06 #04172F
square
#2F042D #2F1C04 #042F06 #04172F
split-complementary
#2F042D #172F04 #042F1C
monochromatic
#1C021B #1C021B #2F042D #670963 #A00E99

Accessibility & contrast

On white

17.85
#2F042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F042D
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F042D#FFFFFF#000000##FFFFFF
##2F042D1.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142E
Deuteranopia (green-blind)
#11192C
Tritanopia (blue-blind)
#310918
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2f042d;
/* rgb */ color: rgb(47, 4, 45);
/* oklch */ color: oklch(21.8% 0.089 330.2);
Tailwind
colors: {
  custom: {
    50: '#6a4966',
    500: '#2f042d',
    950: '#000000',
  },
}
SCSS
$custom: #2f042d;
$custom-light: #6a4966;
$custom-dark: #000000;
JSON
{
  "hex": "#2f042d",
  "rgb": {
    "r": 47,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 302.791,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.21835,
    "c": 0.08898,
    "h": 330.2
  },
  "luminance": 0.00881
}

Semantic roles & 50–950 ramp

primary
#2F042D
secondary
#1D7221
accent
#FB372D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #2F042D

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

Preview Lab → · Contrast checker → · Palette generator →

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