#2F0229#2F0229

#2F0229 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.3% C 0.089 H 334.4°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#2F0229
RGBrgb(47, 2, 41)
HSLhsl(308, 92%, 10%)
HSVhsv(308, 96%, 18%)
CMYKcmyk(0%, 95.7%, 12.8%, 81.6%)
CIE-LABlab(7.30, 27.57, -14.05)
CIE-LCHlch(7.30, 30.94, 332.99°)
OKLaboklab(21.26% 0.0806 -0.0387)
OKLCHoklch(21.26% 0.089 334.4)
XYZxyz(1.5943, 0.8080, 2.1694)
Luminance0.0081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0229 #022F08
analogous
#1F022F #2F0229 #2F0213
triadic
#2F0229 #292F02 #02292F
tetradic
#2F0229 #2F1F02 #022F08 #02132F
square
#2F0229 #2F1F02 #022F08 #02132F
split-complementary
#2F0229 #132F02 #022F1F
monochromatic
#1D011A #1D011A #2F0229 #6A045C #A4078F

Accessibility & contrast

On white

18.08
#2F0229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0229
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0229#FFFFFF#000000##FFFFFF
##2F02291.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01122A
Deuteranopia (green-blind)
#121828
Tritanopia (blue-blind)
#320515
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2f0229;
/* rgb */ color: rgb(47, 2, 41);
/* oklch */ color: oklch(21.3% 0.089 334.4);
Tailwind
colors: {
  custom: {
    50: '#6a4863',
    500: '#2f0229',
    950: '#000000',
  },
}
SCSS
$custom: #2f0229;
$custom-light: #6a4863;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0229",
  "rgb": {
    "r": 47,
    "g": 2,
    "b": 41
  },
  "hsl": {
    "h": 308,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.21264,
    "c": 0.08939,
    "h": 334.4
  },
  "luminance": 0.00808
}

Semantic roles & 50–950 ramp

primary
#2F0229
secondary
#197425
accent
#FF4529
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #2F0229

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

Preview Lab → · Contrast checker → · Palette generator →

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