#2F0839#2F0839

#2F0839 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.094 H 318.5°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#2F0839
RGBrgb(47, 8, 57)
HSLhsl(288, 75%, 13%)
HSVhsv(288, 86%, 22%)
CMYKcmyk(17.5%, 86%, 0%, 77.6%)
CIE-LABlab(9.59, 27.68, -22.21)
CIE-LCHlch(9.59, 35.49, 321.26°)
OKLaboklab(23.28% 0.0705 -0.0624)
OKLCHoklch(23.28% 0.094 318.5)
XYZxyz(1.9975, 1.0735, 3.9721)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0839 #123908
analogous
#160839 #2F0839 #39082A
triadic
#2F0839 #392F08 #08392F
tetradic
#2F0839 #391608 #123908 #082A39
square
#2F0839 #391608 #123908 #082A39
split-complementary
#2F0839 #2A3908 #083916
monochromatic
#16041B #16041B #2F0839 #5B106F #8817A4

Accessibility & contrast

On white

17.29
#2F0839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0839
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0839#FFFFFF#000000##FFFFFF
##2F08391.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#0B1C38
Tritanopia (blue-blind)
#2F1220
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0839;
/* rgb */ color: rgb(47, 8, 57);
/* oklch */ color: oklch(23.3% 0.094 318.5);
Tailwind
colors: {
  custom: {
    50: '#6a4c70',
    500: '#2f0839',
    950: '#000000',
  },
}
SCSS
$custom: #2f0839;
$custom-light: #6a4c70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0839",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 57
  },
  "hsl": {
    "h": 287.755,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23284,
    "c": 0.09412,
    "h": 318.5
  },
  "luminance": 0.01073
}

Semantic roles & 50–950 ramp

primary
#2F0839
secondary
#367825
accent
#F2365C
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0839

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

Preview Lab → · Contrast checker → · Palette generator →

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