#2F0C2F#2F0C2F

#2F0C2F is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.0% C 0.077 H 327.7°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#2F0C2F
RGBrgb(47, 12, 47)
HSLhsl(300, 59%, 12%)
HSVhsv(300, 74%, 18%)
CMYKcmyk(0%, 74.5%, 0%, 81.6%)
CIE-LABlab(9.58, 23.42, -14.93)
CIE-LCHlch(9.58, 27.77, 327.49°)
OKLaboklab(23.05% 0.0652 -0.0412)
OKLCHoklch(23.05% 0.077 327.7)
XYZxyz(1.8168, 1.0726, 2.8001)
Luminance0.0107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C2F #0C2F0C
analogous
#1E0C2F #2F0C2F #2F0C1E
triadic
#2F0C2F #2F2F0C #0C2F2F
tetradic
#2F0C2F #2F1E0C #0C2F0C #0C1E2F
square
#2F0C2F #2F1E0C #0C2F0C #0C1E2F
split-complementary
#2F0C2F #1E2F0C #0C2F1E
monochromatic
#180618 #180618 #2F0C2F #601860 #912591

Accessibility & contrast

On white

17.29
#2F0C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2F0C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C2F
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C2F#FFFFFF#000000##FFFFFF
##2F0C2F1.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081830
Deuteranopia (green-blind)
#141C2E
Tritanopia (blue-blind)
#31101C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0c2f;
/* rgb */ color: rgb(47, 12, 47);
/* oklch */ color: oklch(23.0% 0.077 327.7);
Tailwind
colors: {
  custom: {
    50: '#694e67',
    500: '#2f0c2f',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c2f;
$custom-light: #694e67;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c2f",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 300,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23049,
    "c": 0.07715,
    "h": 327.7
  },
  "luminance": 0.01073
}

Semantic roles & 50–950 ramp

primary
#2F0C2F
secondary
#2C6B2C
accent
#E34545
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2F0C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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