#2F0231#2F0231

#2F0231 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.9% C 0.096 H 326.3°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#2F0231
RGBrgb(47, 2, 49)
HSLhsl(297, 92%, 10%)
HSVhsv(297, 96%, 19%)
CMYKcmyk(4.1%, 95.9%, 0%, 80.8%)
CIE-LABlab(7.86, 29.16, -19.15)
CIE-LCHlch(7.86, 34.89, 326.71°)
OKLaboklab(21.86% 0.0802 -0.0534)
OKLCHoklch(21.86% 0.096 326.3)
XYZxyz(1.7483, 0.8696, 2.9809)
Luminance0.0087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0231 #043102
analogous
#180231 #2F0231 #31021B
triadic
#2F0231 #312F02 #02312F
tetradic
#2F0231 #311802 #043102 #021B31
square
#2F0231 #311802 #043102 #021B31
split-complementary
#2F0231 #1B3102 #023118
monochromatic
#1C011D #1C011D #2F0231 #67046C #A007A7

Accessibility & contrast

On white

17.89
#2F0231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2F0231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0231
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0231#FFFFFF#000000##FFFFFF
##2F02311.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001432
Deuteranopia (green-blind)
#0D1930
Tritanopia (blue-blind)
#310919
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2f0231;
/* rgb */ color: rgb(47, 2, 49);
/* oklch */ color: oklch(21.9% 0.096 326.3);
Tailwind
colors: {
  custom: {
    50: '#6a4869',
    500: '#2f0231',
    950: '#000000',
  },
}
SCSS
$custom: #2f0231;
$custom-light: #6a4869;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0231",
  "rgb": {
    "r": 47,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 297.447,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21858,
    "c": 0.0963,
    "h": 326.3
  },
  "luminance": 0.0087
}

Semantic roles & 50–950 ramp

primary
#2F0231
secondary
#1D7519
accent
#FF2932
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #2F0231

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

Preview Lab → · Contrast checker → · Palette generator →

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