#2F052A#2F052A

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

Color values

HEX#2F052A
RGBrgb(47, 5, 42)
HSLhsl(307, 81%, 10%)
HSVhsv(307, 89%, 18%)
CMYKcmyk(0%, 89.4%, 10.6%, 81.6%)
CIE-LABlab(7.95, 26.08, -13.78)
CIE-LCHlch(7.95, 29.50, 332.16°)
OKLaboklab(21.77% 0.0755 -0.0378)
OKLCHoklch(21.77% 0.084 333.4)
XYZxyz(1.6445, 0.8802, 2.2733)
Luminance0.0088 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F052A #052F0A
analogous
#1F052F #2F052A #2F0515
triadic
#2F052A #2A2F05 #052A2F
tetradic
#2F052A #2F1F05 #052F0A #05152F
square
#2F052A #2F1F05 #052F0A #05152F
split-complementary
#2F052A #152F05 #052F1F
monochromatic
#1C0319 #1C0319 #2F052A #660B5B #9E118D

Accessibility & contrast

On white

17.86
#2F052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F052A
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F052A#FFFFFF#000000##FFFFFF
##2F052A1.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04132B
Deuteranopia (green-blind)
#131A29
Tritanopia (blue-blind)
#320916
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2f052a;
/* rgb */ color: rgb(47, 5, 42);
/* oklch */ color: oklch(21.8% 0.084 333.4);
Tailwind
colors: {
  custom: {
    50: '#6a4a63',
    500: '#2f052a',
    950: '#000000',
  },
}
SCSS
$custom: #2f052a;
$custom-light: #6a4a63;
$custom-dark: #000000;
JSON
{
  "hex": "#2f052a",
  "rgb": {
    "r": 47,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 307.143,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21766,
    "c": 0.0844,
    "h": 333.4
  },
  "luminance": 0.0088
}

Semantic roles & 50–950 ramp

primary
#2F052A
secondary
#1F7129
accent
#F74831
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2F052A

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

Preview Lab → · Contrast checker → · Palette generator →

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