#2F022B#2F022B

#2F022B is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.4% C 0.091 H 332.3°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#2F022B
RGBrgb(47, 2, 43)
HSLhsl(305, 92%, 10%)
HSVhsv(305, 96%, 18%)
CMYKcmyk(0%, 95.7%, 8.5%, 81.6%)
CIE-LABlab(7.43, 27.96, -15.35)
CIE-LCHlch(7.43, 31.90, 331.23°)
OKLaboklab(21.4% 0.0806 -0.0424)
OKLCHoklch(21.4% 0.091 332.3)
XYZxyz(1.6301, 0.8223, 2.3579)
Luminance0.0082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F022B #022F06
analogous
#1D022F #2F022B #2F0215
triadic
#2F022B #2B2F02 #022B2F
tetradic
#2F022B #2F1D02 #022F06 #02152F
square
#2F022B #2F1D02 #022F06 #02152F
split-complementary
#2F022B #152F02 #022F1D
monochromatic
#1D011B #1D011B #2F022B #6A0461 #A40796

Accessibility & contrast

On white

18.04
#2F022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2F022B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F022B
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F022B#FFFFFF#000000##FFFFFF
##2F022B1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122C
Deuteranopia (green-blind)
#11192A
Tritanopia (blue-blind)
#320616
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2f022b;
/* rgb */ color: rgb(47, 2, 43);
/* oklch */ color: oklch(21.4% 0.091 332.3);
Tailwind
colors: {
  custom: {
    50: '#6a4864',
    500: '#2f022b',
    950: '#000000',
  },
}
SCSS
$custom: #2f022b;
$custom-light: #6a4864;
$custom-dark: #000000;
JSON
{
  "hex": "#2f022b",
  "rgb": {
    "r": 47,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 305.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.21405,
    "c": 0.09107,
    "h": 332.3
  },
  "luminance": 0.00822
}

Semantic roles & 50–950 ramp

primary
#2F022B
secondary
#197421
accent
#FF3C29
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #2F022B

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

Preview Lab → · Contrast checker → · Palette generator →

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