#2F0C2A#2F0C2A

#2F0C2A is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.7% C 0.072 H 333.7°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#2F0C2A
RGBrgb(47, 12, 42)
HSLhsl(309, 59%, 12%)
HSVhsv(309, 74%, 18%)
CMYKcmyk(0%, 74.5%, 10.6%, 81.6%)
CIE-LABlab(9.28, 22.36, -11.70)
CIE-LCHlch(9.28, 25.24, 332.38°)
OKLaboklab(22.73% 0.0646 -0.0319)
OKLCHoklch(22.73% 0.072 333.7)
XYZxyz(1.7217, 1.0346, 2.2991)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C2A #0C2F11
analogous
#230C2F #2F0C2A #2F0C19
triadic
#2F0C2A #2A2F0C #0C2A2F
tetradic
#2F0C2A #2F230C #0C2F11 #0C192F
square
#2F0C2A #2F230C #0C2F11 #0C192F
split-complementary
#2F0C2A #192F0C #0C2F23
monochromatic
#180616 #180616 #2F0C2A #601856 #912581

Accessibility & contrast

On white

17.40
#2F0C2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C2A
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C2A#FFFFFF#000000##FFFFFF
##2F0C2A1.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B172B
Deuteranopia (green-blind)
#171C29
Tritanopia (blue-blind)
#310F19
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f0c2a;
/* rgb */ color: rgb(47, 12, 42);
/* oklch */ color: oklch(22.7% 0.072 333.7);
Tailwind
colors: {
  custom: {
    50: '#694d63',
    500: '#2f0c2a',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c2a;
$custom-light: #694d63;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c2a",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 42
  },
  "hsl": {
    "h": 308.571,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22726,
    "c": 0.07203,
    "h": 333.7
  },
  "luminance": 0.01034
}

Semantic roles & 50–950 ramp

primary
#2F0C2A
secondary
#2C6B35
accent
#E35C45
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2F0C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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