#2F042C#2F042C

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

Color values

HEX#2F042C
RGBrgb(47, 4, 44)
HSLhsl(304, 84%, 10%)
HSVhsv(304, 91%, 18%)
CMYKcmyk(0%, 91.5%, 6.4%, 81.6%)
CIE-LABlab(7.89, 27.03, -15.38)
CIE-LCHlch(7.89, 31.10, 330.37°)
OKLaboklab(21.76% 0.0772 -0.0424)
OKLCHoklch(21.76% 0.088 331.2)
XYZxyz(1.6703, 0.8732, 2.4629)
Luminance0.0087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F042C #042F07
analogous
#1C042F #2F042C #2F0417
triadic
#2F042C #2C2F04 #042C2F
tetradic
#2F042C #2F1C04 #042F07 #04172F
square
#2F042C #2F1C04 #042F07 #04172F
split-complementary
#2F042C #172F04 #042F1C
monochromatic
#1C021A #1C021A #2F042C #670961 #A00E96

Accessibility & contrast

On white

17.88
#2F042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2F042C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F042C
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F042C#FFFFFF#000000##FFFFFF
##2F042C1.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01132D
Deuteranopia (green-blind)
#11192B
Tritanopia (blue-blind)
#310917
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2f042c;
/* rgb */ color: rgb(47, 4, 44);
/* oklch */ color: oklch(21.8% 0.088 331.2);
Tailwind
colors: {
  custom: {
    50: '#6a4965',
    500: '#2f042c',
    950: '#000000',
  },
}
SCSS
$custom: #2f042c;
$custom-light: #6a4965;
$custom-dark: #000000;
JSON
{
  "hex": "#2f042c",
  "rgb": {
    "r": 47,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 304.186,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.21764,
    "c": 0.08808,
    "h": 331.2
  },
  "luminance": 0.00873
}

Semantic roles & 50–950 ramp

primary
#2F042C
secondary
#1D7223
accent
#FB3C2D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #2F042C

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

Preview Lab → · Contrast checker → · Palette generator →

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