#2F052C#2F052C

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

Color values

HEX#2F052C
RGBrgb(47, 5, 44)
HSLhsl(304, 81%, 10%)
HSVhsv(304, 89%, 18%)
CMYKcmyk(0%, 89.4%, 6.4%, 81.6%)
CIE-LABlab(8.08, 26.47, -15.07)
CIE-LCHlch(8.08, 30.46, 330.35°)
OKLaboklab(21.9% 0.0756 -0.0415)
OKLCHoklch(21.9% 0.086 331.2)
XYZxyz(1.6812, 0.8949, 2.4666)
Luminance0.0089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F052C #052F08
analogous
#1D052F #2F052C #2F0517
triadic
#2F052C #2C2F05 #052C2F
tetradic
#2F052C #2F1D05 #052F08 #05172F
square
#2F052C #2F1D05 #052F08 #05172F
split-complementary
#2F052C #172F05 #052F1D
monochromatic
#1C031A #1C031A #2F052C #660B60 #9E1194

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F052C#FFFFFF#000000##FFFFFF
##2F052C1.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)
#03142D
Deuteranopia (green-blind)
#121A2B
Tritanopia (blue-blind)
#310A17
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2f052c;
/* rgb */ color: rgb(47, 5, 44);
/* oklch */ color: oklch(21.9% 0.086 331.2);
Tailwind
colors: {
  custom: {
    50: '#6a4a65',
    500: '#2f052c',
    950: '#000000',
  },
}
SCSS
$custom: #2f052c;
$custom-light: #6a4a65;
$custom-dark: #000000;
JSON
{
  "hex": "#2f052c",
  "rgb": {
    "r": 47,
    "g": 5,
    "b": 44
  },
  "hsl": {
    "h": 304.286,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21904,
    "c": 0.08622,
    "h": 331.2
  },
  "luminance": 0.00895
}

Semantic roles & 50–950 ramp

primary
#2F052C
secondary
#1F7125
accent
#F73F31
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2F052C

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

Preview Lab → · Contrast checker → · Palette generator →

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