#2F0842#2F0842

#2F0842 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.104 H 311.5°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#2F0842
RGBrgb(47, 8, 66)
HSLhsl(280, 78%, 15%)
HSVhsv(280, 88%, 26%)
CMYKcmyk(28.8%, 87.9%, 0%, 74.1%)
CIE-LABlab(10.34, 29.85, -27.42)
CIE-LCHlch(10.34, 40.53, 317.42°)
OKLaboklab(24.06% 0.0688 -0.0777)
OKLCHoklch(24.06% 0.104 311.5)
XYZxyz(2.2423, 1.1714, 5.2612)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0842 #1B4208
analogous
#120842 #2F0842 #420838
triadic
#2F0842 #422F08 #08422F
tetradic
#2F0842 #421208 #1B4208 #083842
square
#2F0842 #421208 #1B4208 #083842
split-complementary
#2F0842 #384208 #084212
monochromatic
#13031B #13031B #2F0842 #560F79 #7D15AF

Accessibility & contrast

On white

17.02
#2F0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0842
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0842#FFFFFF#000000##FFFFFF
##2F08421.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001D41
Tritanopia (blue-blind)
#2D1625
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0842;
/* rgb */ color: rgb(47, 8, 66);
/* oklch */ color: oklch(24.1% 0.104 311.5);
Tailwind
colors: {
  custom: {
    50: '#6a4d77',
    500: '#2f0842',
    950: '#000000',
  },
}
SCSS
$custom: #2f0842;
$custom-light: #6a4d77;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0842",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 280.345,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24057,
    "c": 0.10376,
    "h": 311.5
  },
  "luminance": 0.01171
}

Semantic roles & 50–950 ramp

primary
#2F0842
secondary
#438025
accent
#F53372
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0842

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

Preview Lab → · Contrast checker → · Palette generator →

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