#2F1232#2F1232

#2F1232 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.2% C 0.069 H 323.8°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#2F1232
RGBrgb(47, 18, 50)
HSLhsl(294, 47%, 13%)
HSVhsv(294, 64%, 20%)
CMYKcmyk(6%, 64%, 0%, 80.4%)
CIE-LABlab(11.04, 20.64, -14.82)
CIE-LCHlch(11.04, 25.41, 324.32°)
OKLaboklab(24.18% 0.0559 -0.041)
OKLCHoklch(24.18% 0.069 323.8)
XYZxyz(1.9643, 1.2673, 3.1581)
Luminance0.0127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1232 #153212
analogous
#1F1232 #2F1232 #321225
triadic
#2F1232 #322F12 #12322F
tetradic
#2F1232 #321F12 #153212 #122532
square
#2F1232 #321F12 #153212 #122532
split-complementary
#2F1232 #253212 #12321F
monochromatic
#150817 #150817 #2F1232 #59225F #84328C

Accessibility & contrast

On white

16.75
#2F1232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2F1232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1232
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1232#FFFFFF#000000##FFFFFF
##2F12321.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1B33
Deuteranopia (green-blind)
#171F31
Tritanopia (blue-blind)
#30161F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f1232;
/* rgb */ color: rgb(47, 18, 50);
/* oklch */ color: oklch(24.2% 0.069 323.8);
Tailwind
colors: {
  custom: {
    50: '#69516a',
    500: '#2f1232',
    950: '#000000',
  },
}
SCSS
$custom: #2f1232;
$custom-light: #69516a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1232",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 50
  },
  "hsl": {
    "h": 294.375,
    "s": 47.059,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24179,
    "c": 0.06931,
    "h": 323.8
  },
  "luminance": 0.01267
}

Semantic roles & 50–950 ramp

primary
#2F1232
secondary
#3B6A36
accent
#D7515E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2F1232

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

Preview Lab → · Contrast checker → · Palette generator →

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