#2F052B#2F052B

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

Color values

HEX#2F052B
RGBrgb(47, 5, 43)
HSLhsl(306, 81%, 10%)
HSVhsv(306, 89%, 18%)
CMYKcmyk(0%, 89.4%, 8.5%, 81.6%)
CIE-LABlab(8.02, 26.28, -14.43)
CIE-LCHlch(8.02, 29.98, 331.23°)
OKLaboklab(21.83% 0.0755 -0.0397)
OKLCHoklch(21.83% 0.085 332.3)
XYZxyz(1.6626, 0.8874, 2.3688)
Luminance0.0089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F052B #052F09
analogous
#1E052F #2F052B #2F0516
triadic
#2F052B #2B2F05 #052B2F
tetradic
#2F052B #2F1E05 #052F09 #05162F
square
#2F052B #2F1E05 #052F09 #05162F
split-complementary
#2F052B #162F05 #052F1E
monochromatic
#1C0319 #1C0319 #2F052B #660B5E #9E1190

Accessibility & contrast

On white

17.84
#2F052B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F052B
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F052B#FFFFFF#000000##FFFFFF
##2F052B1.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03142C
Deuteranopia (green-blind)
#121A2A
Tritanopia (blue-blind)
#310917
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2f052b;
/* rgb */ color: rgb(47, 5, 43);
/* oklch */ color: oklch(21.8% 0.085 332.3);
Tailwind
colors: {
  custom: {
    50: '#6a4a64',
    500: '#2f052b',
    950: '#000000',
  },
}
SCSS
$custom: #2f052b;
$custom-light: #6a4a64;
$custom-dark: #000000;
JSON
{
  "hex": "#2f052b",
  "rgb": {
    "r": 47,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 305.714,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21835,
    "c": 0.08531,
    "h": 332.3
  },
  "luminance": 0.00887
}

Semantic roles & 50–950 ramp

primary
#2F052B
secondary
#1F7127
accent
#F74431
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2F052B

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

Preview Lab → · Contrast checker → · Palette generator →

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