#2F0942#2F0942

#2F0942 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.102 H 311.3°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#2F0942
RGBrgb(47, 9, 66)
HSLhsl(280, 76%, 15%)
HSVhsv(280, 86%, 26%)
CMYKcmyk(28.8%, 86.4%, 0%, 74.1%)
CIE-LABlab(10.51, 29.38, -27.16)
CIE-LCHlch(10.51, 40.01, 317.25°)
OKLaboklab(24.17% 0.0676 -0.0769)
OKLCHoklch(24.17% 0.102 311.3)
XYZxyz(2.2532, 1.1931, 5.2648)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0942 #1C4209
analogous
#130942 #2F0942 #420939
triadic
#2F0942 #422F09 #09422F
tetradic
#2F0942 #421309 #1C4209 #093942
square
#2F0942 #421309 #1C4209 #093942
split-complementary
#2F0942 #394209 #094213
monochromatic
#13041B #13041B #2F0942 #551078 #7C18AE

Accessibility & contrast

On white

16.95
#2F0942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2F0942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0942
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0942#FFFFFF#000000##FFFFFF
##2F09421.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#011D41
Tritanopia (blue-blind)
#2D1725
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0942;
/* rgb */ color: rgb(47, 9, 66);
/* oklch */ color: oklch(24.2% 0.102 311.3);
Tailwind
colors: {
  custom: {
    50: '#6a4d77',
    500: '#2f0942',
    950: '#000000',
  },
}
SCSS
$custom: #2f0942;
$custom-light: #6a4d77;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0942",
  "rgb": {
    "r": 47,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 280,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24171,
    "c": 0.10244,
    "h": 311.3
  },
  "luminance": 0.01193
}

Semantic roles & 50–950 ramp

primary
#2F0942
secondary
#458027
accent
#F33574
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0942

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

Preview Lab → · Contrast checker → · Palette generator →

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