#2F0731#2F0731

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

Color values

HEX#2F0731
RGBrgb(47, 7, 49)
HSLhsl(297, 75%, 11%)
HSVhsv(297, 86%, 19%)
CMYKcmyk(4.1%, 85.7%, 0%, 80.8%)
CIE-LABlab(8.81, 26.41, -17.63)
CIE-LCHlch(8.81, 31.75, 326.28°)
OKLaboklab(22.54% 0.0725 -0.049)
OKLCHoklch(22.54% 0.087 325.9)
XYZxyz(1.8026, 0.9782, 2.9990)
Luminance0.0098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0731 #093107
analogous
#1A0731 #2F0731 #31071E
triadic
#2F0731 #312F07 #07312F
tetradic
#2F0731 #311A07 #093107 #071E31
square
#2F0731 #311A07 #093107 #071E31
split-complementary
#2F0731 #1E3107 #07311A
monochromatic
#1A041B #1A041B #2F0731 #620F67 #96169C

Accessibility & contrast

On white

17.56
#2F0731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0731
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0731#FFFFFF#000000##FFFFFF
##2F07311.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0731;
/* rgb */ color: rgb(47, 7, 49);
/* oklch */ color: oklch(22.5% 0.087 325.9);
Tailwind
colors: {
  custom: {
    50: '#694b69',
    500: '#2f0731',
    950: '#000000',
  },
}
SCSS
$custom: #2f0731;
$custom-light: #694b69;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0731",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 49
  },
  "hsl": {
    "h": 297.143,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22535,
    "c": 0.08748,
    "h": 325.9
  },
  "luminance": 0.00978
}

Semantic roles & 50–950 ramp

primary
#2F0731
secondary
#277123
accent
#F2363F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2F0731

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

Preview Lab → · Contrast checker → · Palette generator →

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