#2F0539#2F0539

#2F0539 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.9% C 0.099 H 318.9°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#2F0539
RGBrgb(47, 5, 57)
HSLhsl(288, 84%, 12%)
HSVhsv(288, 91%, 22%)
CMYKcmyk(17.5%, 91.2%, 0%, 77.6%)
CIE-LABlab(9.06, 29.21, -23.06)
CIE-LCHlch(9.06, 37.21, 321.71°)
OKLaboklab(22.91% 0.0744 -0.0649)
OKLCHoklch(22.91% 0.099 318.9)
XYZxyz(1.9650, 1.0084, 3.9612)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0539 #0F3905
analogous
#150539 #2F0539 #390529
triadic
#2F0539 #392F05 #05392F
tetradic
#2F0539 #391505 #0F3905 #052939
square
#2F0539 #391505 #0F3905 #052939
split-complementary
#2F0539 #293905 #053915
monochromatic
#17021C #17021C #2F0539 #5D0A71 #8C0FAA

Accessibility & contrast

On white

17.48
#2F0539 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2F0539 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0539
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0539#FFFFFF#000000##FFFFFF
##2F05391.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173A
Deuteranopia (green-blind)
#081B38
Tritanopia (blue-blind)
#2F101F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f0539;
/* rgb */ color: rgb(47, 5, 57);
/* oklch */ color: oklch(22.9% 0.099 318.9);
Tailwind
colors: {
  custom: {
    50: '#6a4a70',
    500: '#2f0539',
    950: '#000000',
  },
}
SCSS
$custom: #2f0539;
$custom-light: #6a4a70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0539",
  "rgb": {
    "r": 47,
    "g": 5,
    "b": 57
  },
  "hsl": {
    "h": 288.462,
    "s": 83.871,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22911,
    "c": 0.09873,
    "h": 318.9
  },
  "luminance": 0.01008
}

Semantic roles & 50–950 ramp

primary
#2F0539
secondary
#317A20
accent
#FA2E55
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0539

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

Preview Lab → · Contrast checker → · Palette generator →

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