#2F0831#2F0831

#2F0831 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.7% C 0.086 H 325.9°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#2F0831
RGBrgb(47, 8, 49)
HSLhsl(297, 72%, 11%)
HSVhsv(297, 84%, 19%)
CMYKcmyk(4.1%, 83.7%, 0%, 80.8%)
CIE-LABlab(8.99, 25.89, -17.34)
CIE-LCHlch(8.99, 31.16, 326.19°)
OKLaboklab(22.67% 0.071 -0.0482)
OKLCHoklch(22.67% 0.086 325.9)
XYZxyz(1.8135, 0.9999, 3.0026)
Luminance0.0100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0831 #0A3108
analogous
#1A0831 #2F0831 #31081E
triadic
#2F0831 #312F08 #08312F
tetradic
#2F0831 #311A08 #0A3108 #081E31
square
#2F0831 #311A08 #0A3108 #081E31
split-complementary
#2F0831 #1E3108 #08311A
monochromatic
#19041A #19041A #2F0831 #611166 #94199A

Accessibility & contrast

On white

17.50
#2F0831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2F0831 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0831
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0831#FFFFFF#000000##FFFFFF
##2F08311.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021632
Deuteranopia (green-blind)
#111B30
Tritanopia (blue-blind)
#300E1B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2f0831;
/* rgb */ color: rgb(47, 8, 49);
/* oklch */ color: oklch(22.7% 0.086 325.9);
Tailwind
colors: {
  custom: {
    50: '#694c69',
    500: '#2f0831',
    950: '#000000',
  },
}
SCSS
$custom: #2f0831;
$custom-light: #694c69;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0831",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 49
  },
  "hsl": {
    "h": 297.073,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.22665,
    "c": 0.08582,
    "h": 325.9
  },
  "luminance": 0.01
}

Semantic roles & 50–950 ramp

primary
#2F0831
secondary
#297025
accent
#EF3942
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2F0831

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

Preview Lab → · Contrast checker → · Palette generator →

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