#2F0642#2F0642

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

Color values

HEX#2F0642
RGBrgb(47, 6, 66)
HSLhsl(281, 83%, 14%)
HSVhsv(281, 91%, 26%)
CMYKcmyk(28.8%, 90.9%, 0%, 74.1%)
CIE-LABlab(10.02, 30.80, -27.96)
CIE-LCHlch(10.02, 41.60, 317.77°)
OKLaboklab(23.83% 0.0711 -0.0792)
OKLCHoklch(23.83% 0.106 311.9)
XYZxyz(2.2206, 1.1280, 5.2539)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0642 #194206
analogous
#110642 #2F0642 #420637
triadic
#2F0642 #422F06 #06422F
tetradic
#2F0642 #421106 #194206 #063742
square
#2F0642 #421106 #194206 #063742
split-complementary
#2F0642 #374206 #064211
monochromatic
#14031C #14031C #2F0642 #570B7A #7F10B2

Accessibility & contrast

On white

17.13
#2F0642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2F0642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0642
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0642#FFFFFF#000000##FFFFFF
##2F06421.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0642;
/* rgb */ color: rgb(47, 6, 66);
/* oklch */ color: oklch(23.8% 0.106 311.9);
Tailwind
colors: {
  custom: {
    50: '#6b4c77',
    500: '#2f0642',
    950: '#000000',
  },
}
SCSS
$custom: #2f0642;
$custom-light: #6b4c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0642",
  "rgb": {
    "r": 47,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 281,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23826,
    "c": 0.10644,
    "h": 311.9
  },
  "luminance": 0.01128
}

Semantic roles & 50–950 ramp

primary
#2F0642
secondary
#408222
accent
#FA2E6F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0642

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

Preview Lab → · Contrast checker → · Palette generator →

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