#2F0838#2F0838

#2F0838 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.2% C 0.093 H 319.3°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#2F0838
RGBrgb(47, 8, 56)
HSLhsl(289, 75%, 13%)
HSVhsv(289, 86%, 22%)
CMYKcmyk(16.1%, 85.7%, 0%, 78%)
CIE-LABlab(9.51, 27.45, -21.62)
CIE-LCHlch(9.51, 34.94, 321.78°)
OKLaboklab(23.2% 0.0706 -0.0606)
OKLCHoklch(23.2% 0.093 319.3)
XYZxyz(1.9728, 1.0636, 3.8420)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0838 #113808
analogous
#170838 #2F0838 #380829
triadic
#2F0838 #382F08 #08382F
tetradic
#2F0838 #381708 #113808 #082938
square
#2F0838 #381708 #113808 #082938
split-complementary
#2F0838 #293808 #083817
monochromatic
#16041B #16041B #2F0838 #5C106E #8917A3

Accessibility & contrast

On white

17.32
#2F0838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2F0838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0838
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0838#FFFFFF#000000##FFFFFF
##2F08381.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#0C1C37
Tritanopia (blue-blind)
#2F121F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f0838;
/* rgb */ color: rgb(47, 8, 56);
/* oklch */ color: oklch(23.2% 0.093 319.3);
Tailwind
colors: {
  custom: {
    50: '#6a4c6f',
    500: '#2f0838',
    950: '#000000',
  },
}
SCSS
$custom: #2f0838;
$custom-light: #6a4c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0838",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 288.75,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23203,
    "c": 0.09306,
    "h": 319.3
  },
  "luminance": 0.01064
}

Semantic roles & 50–950 ramp

primary
#2F0838
secondary
#347725
accent
#F23659
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0838

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

Preview Lab → · Contrast checker → · Palette generator →

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