#2F0640#2F0640

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

Color values

HEX#2F0640
RGBrgb(47, 6, 64)
HSLhsl(282, 83%, 14%)
HSVhsv(282, 91%, 25%)
CMYKcmyk(26.6%, 90.6%, 0%, 74.9%)
CIE-LABlab(9.84, 30.32, -26.83)
CIE-LCHlch(9.84, 40.49, 318.50°)
OKLaboklab(23.64% 0.0716 -0.0759)
OKLCHoklch(23.64% 0.104 313.3)
XYZxyz(2.1627, 1.1048, 4.9488)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0640 #174006
analogous
#120640 #2F0640 #400634
triadic
#2F0640 #402F06 #06402F
tetradic
#2F0640 #401206 #174006 #063440
square
#2F0640 #401206 #174006 #063440
split-complementary
#2F0640 #344006 #064012
monochromatic
#15031C #15031C #2F0640 #580B78 #8110B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F0640#FFFFFF#000000##FFFFFF
##2F06401.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)
#001942
Deuteranopia (green-blind)
#011C3F
Tritanopia (blue-blind)
#2D1423
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0640;
/* rgb */ color: rgb(47, 6, 64);
/* oklch */ color: oklch(23.6% 0.104 313.3);
Tailwind
colors: {
  custom: {
    50: '#6a4b75',
    500: '#2f0640',
    950: '#000000',
  },
}
SCSS
$custom: #2f0640;
$custom-light: #6a4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0640",
  "rgb": {
    "r": 47,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 282.414,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23644,
    "c": 0.10436,
    "h": 313.3
  },
  "luminance": 0.01105
}

Semantic roles & 50–950 ramp

primary
#2F0640
secondary
#3D8022
accent
#F92F6A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0640

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

Preview Lab → · Contrast checker → · Palette generator →

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