#2F0C31#2F0C31

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

Color values

HEX#2F0C31
RGBrgb(47, 12, 49)
HSLhsl(297, 61%, 12%)
HSVhsv(297, 76%, 19%)
CMYKcmyk(4.1%, 75.5%, 0%, 80.8%)
CIE-LABlab(9.71, 23.86, -16.19)
CIE-LCHlch(9.71, 28.84, 325.84°)
OKLaboklab(23.19% 0.0654 -0.0449)
OKLCHoklch(23.19% 0.079 325.5)
XYZxyz(1.8581, 1.0891, 3.0175)
Luminance0.0109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C31 #0E310C
analogous
#1D0C31 #2F0C31 #310C21
triadic
#2F0C31 #312F0C #0C312F
tetradic
#2F0C31 #311D0C #0E310C #0C2131
square
#2F0C31 #311D0C #0E310C #0C2131
split-complementary
#2F0C31 #21310C #0C311D
monochromatic
#180619 #180619 #2F0C31 #5E1862 #8D2493

Accessibility & contrast

On white

17.24
#2F0C31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2F0C31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C31
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C31#FFFFFF#000000##FFFFFF
##2F0C311.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061832
Deuteranopia (green-blind)
#131C30
Tritanopia (blue-blind)
#30111D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0c31;
/* rgb */ color: rgb(47, 12, 49);
/* oklch */ color: oklch(23.2% 0.079 325.5);
Tailwind
colors: {
  custom: {
    50: '#694e69',
    500: '#2f0c31',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c31;
$custom-light: #694e69;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c31",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 49
  },
  "hsl": {
    "h": 296.757,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23186,
    "c": 0.0793,
    "h": 325.5
  },
  "luminance": 0.01089
}

Semantic roles & 50–950 ramp

primary
#2F0C31
secondary
#2F6D2C
accent
#E4444D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2F0C31

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

Preview Lab → · Contrast checker → · Palette generator →

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