#2F0C3C#2F0C3C

#2F0C3C is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.092 H 315.3°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#2F0C3C
RGBrgb(47, 12, 60)
HSLhsl(284, 67%, 14%)
HSVhsv(284, 80%, 24%)
CMYKcmyk(21.7%, 80%, 0%, 76.5%)
CIE-LABlab(10.51, 26.46, -22.89)
CIE-LCHlch(10.51, 34.99, 319.14°)
OKLaboklab(24.02% 0.0651 -0.0644)
OKLCHoklch(24.02% 0.092 315.3)
XYZxyz(2.1192, 1.1936, 4.3928)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C3C #193C0C
analogous
#170C3C #2F0C3C #3C0C31
triadic
#2F0C3C #3C2F0C #0C3C2F
tetradic
#2F0C3C #3C170C #193C0C #0C313C
square
#2F0C3C #3C170C #193C0C #0C313C
split-complementary
#2F0C3C #313C0C #0C3C17
monochromatic
#14051A #14051A #2F0C3C #57166F #7F20A2

Accessibility & contrast

On white

16.95
#2F0C3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2F0C3C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C3C
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C3C#FFFFFF#000000##FFFFFF
##2F0C3C1.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3D
Deuteranopia (green-blind)
#0B1D3B
Tritanopia (blue-blind)
#2E1623
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0c3c;
/* rgb */ color: rgb(47, 12, 60);
/* oklch */ color: oklch(24.0% 0.092 315.3);
Tailwind
colors: {
  custom: {
    50: '#6a4e72',
    500: '#2f0c3c',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c3c;
$custom-light: #6a4e72;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c3c",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 60
  },
  "hsl": {
    "h": 283.75,
    "s": 66.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24016,
    "c": 0.09159,
    "h": 315.3
  },
  "luminance": 0.01194
}

Semantic roles & 50–950 ramp

primary
#2F0C3C
secondary
#40782C
accent
#EA3E6D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F0C3C

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

Preview Lab → · Contrast checker → · Palette generator →

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