#2F022D#2F022D

#2F022D is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.6% C 0.093 H 330.2°. Best body text is #FFFFFF at 17.99:1 contrast (WCAG AA passes).

Color values

HEX#2F022D
RGBrgb(47, 2, 45)
HSLhsl(303, 92%, 10%)
HSVhsv(303, 96%, 18%)
CMYKcmyk(0%, 95.7%, 4.3%, 81.6%)
CIE-LABlab(7.56, 28.35, -16.64)
CIE-LCHlch(7.56, 32.87, 329.60°)
OKLaboklab(21.55% 0.0805 -0.0461)
OKLCHoklch(21.55% 0.093 330.2)
XYZxyz(1.6676, 0.8374, 2.5559)
Luminance0.0084 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F022D #022F04
analogous
#1B022F #2F022D #2F0217
triadic
#2F022D #2D2F02 #022D2F
tetradic
#2F022D #2F1B02 #022F04 #02172F
square
#2F022D #2F1B02 #022F04 #02172F
split-complementary
#2F022D #172F02 #022F1B
monochromatic
#1D011C #1D011C #2F022D #6A0465 #A4079D

Accessibility & contrast

On white

17.99
#2F022D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F022D
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F022D#FFFFFF#000000##FFFFFF
##2F022D1.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132E
Deuteranopia (green-blind)
#10192C
Tritanopia (blue-blind)
#310717
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2f022d;
/* rgb */ color: rgb(47, 2, 45);
/* oklch */ color: oklch(21.6% 0.093 330.2);
Tailwind
colors: {
  custom: {
    50: '#6a4866',
    500: '#2f022d',
    950: '#000000',
  },
}
SCSS
$custom: #2f022d;
$custom-light: #6a4866;
$custom-dark: #000000;
JSON
{
  "hex": "#2f022d",
  "rgb": {
    "r": 47,
    "g": 2,
    "b": 45
  },
  "hsl": {
    "h": 302.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.21551,
    "c": 0.09279,
    "h": 330.2
  },
  "luminance": 0.00837
}

Semantic roles & 50–950 ramp

primary
#2F022D
secondary
#19741D
accent
#FF3229
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #2F022D

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

Preview Lab → · Contrast checker → · Palette generator →

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