#2F0538#2F0538

#2F0538 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.8% C 0.098 H 319.8°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#2F0538
RGBrgb(47, 5, 56)
HSLhsl(289, 84%, 12%)
HSVhsv(289, 91%, 22%)
CMYKcmyk(16.1%, 91.1%, 0%, 78%)
CIE-LABlab(8.98, 28.98, -22.47)
CIE-LCHlch(8.98, 36.67, 322.22°)
OKLaboklab(22.83% 0.0746 -0.0631)
OKLCHoklch(22.83% 0.098 319.8)
XYZxyz(1.9403, 0.9985, 3.8311)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0538 #0E3805
analogous
#160538 #2F0538 #380528
triadic
#2F0538 #382F05 #05382F
tetradic
#2F0538 #381605 #0E3805 #052838
square
#2F0538 #381605 #0E3805 #052838
split-complementary
#2F0538 #283805 #053816
monochromatic
#18031C #18031C #2F0538 #5E0A70 #8D0FA8

Accessibility & contrast

On white

17.51
#2F0538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0538
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0538#FFFFFF#000000##FFFFFF
##2F05381.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#091B37
Tritanopia (blue-blind)
#2F101E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2f0538;
/* rgb */ color: rgb(47, 5, 56);
/* oklch */ color: oklch(22.8% 0.098 319.8);
Tailwind
colors: {
  custom: {
    50: '#6a4a6f',
    500: '#2f0538',
    950: '#000000',
  },
}
SCSS
$custom: #2f0538;
$custom-light: #6a4a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0538",
  "rgb": {
    "r": 47,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 289.412,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22827,
    "c": 0.09773,
    "h": 319.8
  },
  "luminance": 0.00998
}

Semantic roles & 50–950 ramp

primary
#2F0538
secondary
#2F7920
accent
#FA2E52
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0538

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

Preview Lab → · Contrast checker → · Palette generator →

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