#2F0841#2F0841

#2F0841 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.103 H 312.2°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#2F0841
RGBrgb(47, 8, 65)
HSLhsl(281, 78%, 14%)
HSVhsv(281, 88%, 25%)
CMYKcmyk(27.7%, 87.7%, 0%, 74.5%)
CIE-LABlab(10.26, 29.60, -26.86)
CIE-LCHlch(10.26, 39.97, 317.78°)
OKLaboklab(23.97% 0.069 -0.076)
OKLCHoklch(23.97% 0.103 312.2)
XYZxyz(2.2131, 1.1597, 5.1073)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0841 #1A4108
analogous
#130841 #2F0841 #410837
triadic
#2F0841 #412F08 #08412F
tetradic
#2F0841 #411308 #1A4108 #083741
square
#2F0841 #411308 #1A4108 #083741
split-complementary
#2F0841 #374108 #084113
monochromatic
#14031B #14031B #2F0841 #560F77 #7E15AE

Accessibility & contrast

On white

17.05
#2F0841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0841
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0841#FFFFFF#000000##FFFFFF
##2F08411.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#021D40
Tritanopia (blue-blind)
#2D1624
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0841;
/* rgb */ color: rgb(47, 8, 65);
/* oklch */ color: oklch(24.0% 0.103 312.2);
Tailwind
colors: {
  custom: {
    50: '#6a4d76',
    500: '#2f0841',
    950: '#000000',
  },
}
SCSS
$custom: #2f0841;
$custom-light: #6a4d76;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0841",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 281.053,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23967,
    "c": 0.10267,
    "h": 312.2
  },
  "luminance": 0.0116
}

Semantic roles & 50–950 ramp

primary
#2F0841
secondary
#427F25
accent
#F53370
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0841

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

Preview Lab → · Contrast checker → · Palette generator →

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