#2F042F#2F042F

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

Color values

HEX#2F042F
RGBrgb(47, 4, 47)
HSLhsl(300, 84%, 10%)
HSVhsv(300, 91%, 18%)
CMYKcmyk(0%, 91.5%, 0%, 81.6%)
CIE-LABlab(8.10, 27.62, -17.28)
CIE-LCHlch(8.10, 32.58, 327.97°)
OKLaboklab(21.98% 0.0771 -0.0479)
OKLCHoklch(21.98% 0.091 328.1)
XYZxyz(1.7288, 0.8965, 2.7708)
Luminance0.0090 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F042F #042F04
analogous
#19042F #2F042F #2F041A
triadic
#2F042F #2F2F04 #042F2F
tetradic
#2F042F #2F1A04 #042F04 #04192F
square
#2F042F #2F1A04 #042F04 #04192F
split-complementary
#2F042F #1A2F04 #042F1A
monochromatic
#1C021C #1C021C #2F042F #670967 #A00EA0

Accessibility & contrast

On white

17.81
#2F042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F042F
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F042F#FFFFFF#000000##FFFFFF
##2F042F1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#101A2E
Tritanopia (blue-blind)
#310A19
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2f042f;
/* rgb */ color: rgb(47, 4, 47);
/* oklch */ color: oklch(22.0% 0.091 328.1);
Tailwind
colors: {
  custom: {
    50: '#6a4967',
    500: '#2f042f',
    950: '#000000',
  },
}
SCSS
$custom: #2f042f;
$custom-light: #6a4967;
$custom-dark: #000000;
JSON
{
  "hex": "#2f042f",
  "rgb": {
    "r": 47,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 300,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.21982,
    "c": 0.09081,
    "h": 328.1
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#2F042F
secondary
#1D721D
accent
#FB2D2D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #2F042F

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

Preview Lab → · Contrast checker → · Palette generator →

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