#2F0C2C#2F0C2C

#2F0C2C is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.9% C 0.074 H 331.2°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#2F0C2C
RGBrgb(47, 12, 44)
HSLhsl(305, 59%, 12%)
HSVhsv(305, 74%, 18%)
CMYKcmyk(0%, 74.5%, 6.4%, 81.6%)
CIE-LABlab(9.40, 22.78, -13.00)
CIE-LCHlch(9.40, 26.23, 330.28°)
OKLaboklab(22.85% 0.0649 -0.0357)
OKLCHoklch(22.85% 0.074 331.2)
XYZxyz(1.7584, 1.0493, 2.4923)
Luminance0.0105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C2C #0C2F0F
analogous
#210C2F #2F0C2C #2F0C1B
triadic
#2F0C2C #2C2F0C #0C2C2F
tetradic
#2F0C2C #2F210C #0C2F0F #0C1B2F
square
#2F0C2C #2F210C #0C2F0F #0C1B2F
split-complementary
#2F0C2C #1B2F0C #0C2F21
monochromatic
#180617 #180617 #2F0C2C #60185A #912587

Accessibility & contrast

On white

17.36
#2F0C2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C2C
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C2C#FFFFFF#000000##FFFFFF
##2F0C2C1.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A172D
Deuteranopia (green-blind)
#161C2B
Tritanopia (blue-blind)
#310F1A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f0c2c;
/* rgb */ color: rgb(47, 12, 44);
/* oklch */ color: oklch(22.9% 0.074 331.2);
Tailwind
colors: {
  custom: {
    50: '#694d65',
    500: '#2f0c2c',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c2c;
$custom-light: #694d65;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c2c",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 44
  },
  "hsl": {
    "h": 305.143,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22852,
    "c": 0.07404,
    "h": 331.2
  },
  "luminance": 0.01049
}

Semantic roles & 50–950 ramp

primary
#2F0C2C
secondary
#2C6B31
accent
#E35345
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2F0C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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