#2F0540#2F0540

#2F0540 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.106 H 313.5°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#2F0540
RGBrgb(47, 5, 64)
HSLhsl(283, 86%, 14%)
HSVhsv(283, 92%, 25%)
CMYKcmyk(26.6%, 92.2%, 0%, 74.9%)
CIE-LABlab(9.67, 30.82, -27.11)
CIE-LCHlch(9.67, 41.04, 318.67°)
OKLaboklab(23.53% 0.0728 -0.0767)
OKLCHoklch(23.53% 0.106 313.5)
XYZxyz(2.1518, 1.0831, 4.9452)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0540 #164005
analogous
#110540 #2F0540 #400533
triadic
#2F0540 #402F05 #05402F
tetradic
#2F0540 #401105 #164005 #053340
square
#2F0540 #401105 #164005 #053340
split-complementary
#2F0540 #334005 #054011
monochromatic
#15021C #15021C #2F0540 #590979 #820EB2

Accessibility & contrast

On white

17.26
#2F0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0540
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0540#FFFFFF#000000##FFFFFF
##2F05401.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#001C3F
Tritanopia (blue-blind)
#2D1323
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0540;
/* rgb */ color: rgb(47, 5, 64);
/* oklch */ color: oklch(23.5% 0.106 313.5);
Tailwind
colors: {
  custom: {
    50: '#6b4b75',
    500: '#2f0540',
    950: '#000000',
  },
}
SCSS
$custom: #2f0540;
$custom-light: #6b4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0540",
  "rgb": {
    "r": 47,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 282.712,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.23525,
    "c": 0.10578,
    "h": 313.5
  },
  "luminance": 0.01083
}

Semantic roles & 50–950 ramp

primary
#2F0540
secondary
#3C8120
accent
#FC2C68
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0540

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

Preview Lab → · Contrast checker → · Palette generator →

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