#2F042A#2F042A

#2F042A is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.6% C 0.086 H 333.4°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#2F042A
RGBrgb(47, 4, 42)
HSLhsl(307, 84%, 10%)
HSVhsv(307, 91%, 18%)
CMYKcmyk(0%, 91.5%, 10.6%, 81.6%)
CIE-LABlab(7.75, 26.64, -14.09)
CIE-LCHlch(7.75, 30.14, 332.13°)
OKLaboklab(21.62% 0.0771 -0.0387)
OKLCHoklch(21.62% 0.086 333.4)
XYZxyz(1.6336, 0.8585, 2.2697)
Luminance0.0086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F042A #042F09
analogous
#1F042F #2F042A #2F0414
triadic
#2F042A #2A2F04 #042A2F
tetradic
#2F042A #2F1F04 #042F09 #04142F
square
#2F042A #2F1F04 #042F09 #04142F
split-complementary
#2F042A #142F04 #042F1F
monochromatic
#1C0219 #1C0219 #2F042A #67095C #A00E8F

Accessibility & contrast

On white

17.92
#2F042A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F042A
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F042A#FFFFFF#000000##FFFFFF
##2F042A1.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03132B
Deuteranopia (green-blind)
#121929
Tritanopia (blue-blind)
#320816
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2f042a;
/* rgb */ color: rgb(47, 4, 42);
/* oklch */ color: oklch(21.6% 0.086 333.4);
Tailwind
colors: {
  custom: {
    50: '#6a4963',
    500: '#2f042a',
    950: '#000000',
  },
}
SCSS
$custom: #2f042a;
$custom-light: #6a4963;
$custom-dark: #000000;
JSON
{
  "hex": "#2f042a",
  "rgb": {
    "r": 47,
    "g": 4,
    "b": 42
  },
  "hsl": {
    "h": 306.977,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.21624,
    "c": 0.0863,
    "h": 333.4
  },
  "luminance": 0.00858
}

Semantic roles & 50–950 ramp

primary
#2F042A
secondary
#1D7227
accent
#FB452D
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #2F042A

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

Preview Lab → · Contrast checker → · Palette generator →

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