#2F042B#2F042B

#2F042B is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.7% C 0.087 H 332.3°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#2F042B
RGBrgb(47, 4, 43)
HSLhsl(306, 84%, 10%)
HSVhsv(306, 91%, 18%)
CMYKcmyk(0%, 91.5%, 8.5%, 81.6%)
CIE-LABlab(7.82, 26.84, -14.73)
CIE-LCHlch(7.82, 30.62, 331.23°)
OKLaboklab(21.69% 0.0772 -0.0406)
OKLCHoklch(21.69% 0.087 332.3)
XYZxyz(1.6518, 0.8657, 2.3651)
Luminance0.0087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F042B #042F08
analogous
#1D042F #2F042B #2F0416
triadic
#2F042B #2B2F04 #042B2F
tetradic
#2F042B #2F1D04 #042F08 #04162F
square
#2F042B #2F1D04 #042F08 #04162F
split-complementary
#2F042B #162F04 #042F1D
monochromatic
#1C021A #1C021A #2F042B #67095F #A00E92

Accessibility & contrast

On white

17.90
#2F042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F042B
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F042B#FFFFFF#000000##FFFFFF
##2F042B1.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02132C
Deuteranopia (green-blind)
#12192A
Tritanopia (blue-blind)
#310817
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2f042b;
/* rgb */ color: rgb(47, 4, 43);
/* oklch */ color: oklch(21.7% 0.087 332.3);
Tailwind
colors: {
  custom: {
    50: '#6a4964',
    500: '#2f042b',
    950: '#000000',
  },
}
SCSS
$custom: #2f042b;
$custom-light: #6a4964;
$custom-dark: #000000;
JSON
{
  "hex": "#2f042b",
  "rgb": {
    "r": 47,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 305.581,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.21693,
    "c": 0.08718,
    "h": 332.3
  },
  "luminance": 0.00866
}

Semantic roles & 50–950 ramp

primary
#2F042B
secondary
#1D7225
accent
#FB402D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #2F042B

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

Preview Lab → · Contrast checker → · Palette generator →

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