#2F0542#2F0542

#2F0542 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.108 H 312.1°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#2F0542
RGBrgb(47, 5, 66)
HSLhsl(281, 86%, 14%)
HSVhsv(281, 92%, 26%)
CMYKcmyk(28.8%, 92.4%, 0%, 74.1%)
CIE-LABlab(9.85, 31.29, -28.23)
CIE-LCHlch(9.85, 42.15, 317.94°)
OKLaboklab(23.71% 0.0722 -0.08)
OKLCHoklch(23.71% 0.108 312.1)
XYZxyz(2.2097, 1.1063, 5.2503)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0542 #184205
analogous
#110542 #2F0542 #420537
triadic
#2F0542 #422F05 #05422F
tetradic
#2F0542 #421105 #184205 #053742
square
#2F0542 #421105 #184205 #053742
split-complementary
#2F0542 #374205 #054211
monochromatic
#14021C #14021C #2F0542 #58097B #800EB4

Accessibility & contrast

On white

17.20
#2F0542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2F0542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0542
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0542#FFFFFF#000000##FFFFFF
##2F05421.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#2D1424
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0542;
/* rgb */ color: rgb(47, 5, 66);
/* oklch */ color: oklch(23.7% 0.108 312.1);
Tailwind
colors: {
  custom: {
    50: '#6b4b77',
    500: '#2f0542',
    950: '#000000',
  },
}
SCSS
$custom: #2f0542;
$custom-light: #6b4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0542",
  "rgb": {
    "r": 47,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 281.311,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23709,
    "c": 0.10781,
    "h": 312.1
  },
  "luminance": 0.01106
}

Semantic roles & 50–950 ramp

primary
#2F0542
secondary
#3F8220
accent
#FC2C6D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0542

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

Preview Lab → · Contrast checker → · Palette generator →

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