#2F022C#2F022C

#2F022C is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.5% C 0.092 H 331.2°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#2F022C
RGBrgb(47, 2, 44)
HSLhsl(304, 92%, 10%)
HSVhsv(304, 96%, 18%)
CMYKcmyk(0%, 95.7%, 6.4%, 81.6%)
CIE-LABlab(7.49, 28.16, -16.00)
CIE-LCHlch(7.49, 32.39, 330.40°)
OKLaboklab(21.48% 0.0806 -0.0442)
OKLCHoklch(21.48% 0.092 331.2)
XYZxyz(1.6486, 0.8297, 2.4557)
Luminance0.0083 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F022C #022F05
analogous
#1C022F #2F022C #2F0216
triadic
#2F022C #2C2F02 #022C2F
tetradic
#2F022C #2F1C02 #022F05 #02162F
square
#2F022C #2F1C02 #022F05 #02162F
split-complementary
#2F022C #162F02 #022F1C
monochromatic
#1D011B #1D011B #2F022C #6A0463 #A4079A

Accessibility & contrast

On white

18.01
#2F022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F022C
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F022C#FFFFFF#000000##FFFFFF
##2F022C1.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#10192B
Tritanopia (blue-blind)
#310716
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2f022c;
/* rgb */ color: rgb(47, 2, 44);
/* oklch */ color: oklch(21.5% 0.092 331.2);
Tailwind
colors: {
  custom: {
    50: '#6a4865',
    500: '#2f022c',
    950: '#000000',
  },
}
SCSS
$custom: #2f022c;
$custom-light: #6a4865;
$custom-dark: #000000;
JSON
{
  "hex": "#2f022c",
  "rgb": {
    "r": 47,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 304,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.21478,
    "c": 0.09192,
    "h": 331.2
  },
  "luminance": 0.0083
}

Semantic roles & 50–950 ramp

primary
#2F022C
secondary
#19741F
accent
#FF3729
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #2F022C

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

Preview Lab → · Contrast checker → · Palette generator →

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