#2F0C2B#2F0C2B

#2F0C2B is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.8% C 0.073 H 332.4°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#2F0C2B
RGBrgb(47, 12, 43)
HSLhsl(307, 59%, 12%)
HSVhsv(307, 74%, 18%)
CMYKcmyk(0%, 74.5%, 8.5%, 81.6%)
CIE-LABlab(9.33, 22.57, -12.35)
CIE-LCHlch(9.33, 25.73, 331.31°)
OKLaboklab(22.79% 0.0647 -0.0338)
OKLCHoklch(22.79% 0.073 332.4)
XYZxyz(1.7398, 1.0418, 2.3945)
Luminance0.0104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C2B #0C2F10
analogous
#220C2F #2F0C2B #2F0C1A
triadic
#2F0C2B #2B2F0C #0C2B2F
tetradic
#2F0C2B #2F220C #0C2F10 #0C1A2F
square
#2F0C2B #2F220C #0C2F10 #0C1A2F
split-complementary
#2F0C2B #1A2F0C #0C2F22
monochromatic
#180616 #180616 #2F0C2B #601858 #912584

Accessibility & contrast

On white

17.38
#2F0C2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C2B
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C2B#FFFFFF#000000##FFFFFF
##2F0C2B1.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B172C
Deuteranopia (green-blind)
#161C2A
Tritanopia (blue-blind)
#310F19
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f0c2b;
/* rgb */ color: rgb(47, 12, 43);
/* oklch */ color: oklch(22.8% 0.073 332.4);
Tailwind
colors: {
  custom: {
    50: '#694d64',
    500: '#2f0c2b',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c2b;
$custom-light: #694d64;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c2b",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 43
  },
  "hsl": {
    "h": 306.857,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22788,
    "c": 0.07303,
    "h": 332.4
  },
  "luminance": 0.01042
}

Semantic roles & 50–950 ramp

primary
#2F0C2B
secondary
#2C6B33
accent
#E35745
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2F0C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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