#2F022F#2F022F

#2F022F is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.7% C 0.095 H 328.2°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#2F022F
RGBrgb(47, 2, 47)
HSLhsl(300, 92%, 10%)
HSVhsv(300, 96%, 18%)
CMYKcmyk(0%, 95.7%, 0%, 81.6%)
CIE-LABlab(7.71, 28.76, -17.90)
CIE-LCHlch(7.71, 33.88, 328.10°)
OKLaboklab(21.7% 0.0804 -0.0497)
OKLCHoklch(21.7% 0.095 328.2)
XYZxyz(1.7071, 0.8531, 2.7635)
Luminance0.0085 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F022F #022F02
analogous
#19022F #2F022F #2F0219
triadic
#2F022F #2F2F02 #022F2F
tetradic
#2F022F #2F1902 #022F02 #02192F
square
#2F022F #2F1902 #022F02 #02192F
split-complementary
#2F022F #192F02 #022F19
monochromatic
#1D011D #1D011D #2F022F #6A046A #A407A4

Accessibility & contrast

On white

17.94
#2F022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F022F
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F022F#FFFFFF#000000##FFFFFF
##2F022F1.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#0E192E
Tritanopia (blue-blind)
#310818
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2f022f;
/* rgb */ color: rgb(47, 2, 47);
/* oklch */ color: oklch(21.7% 0.095 328.2);
Tailwind
colors: {
  custom: {
    50: '#6a4868',
    500: '#2f022f',
    950: '#000000',
  },
}
SCSS
$custom: #2f022f;
$custom-light: #6a4868;
$custom-dark: #000000;
JSON
{
  "hex": "#2f022f",
  "rgb": {
    "r": 47,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 300,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.21702,
    "c": 0.09453,
    "h": 328.2
  },
  "luminance": 0.00853
}

Semantic roles & 50–950 ramp

primary
#2F022F
secondary
#197419
accent
#FF2929
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #2F022F

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

Preview Lab → · Contrast checker → · Palette generator →

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