#2F0C39#2F0C39

#2F0C39 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.088 H 317.8°. Best body text is #FFFFFF at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#2F0C39
RGBrgb(47, 12, 57)
HSLhsl(287, 65%, 14%)
HSVhsv(287, 79%, 22%)
CMYKcmyk(17.5%, 78.9%, 0%, 77.6%)
CIE-LABlab(10.28, 25.73, -21.10)
CIE-LCHlch(10.28, 33.27, 320.64°)
OKLaboklab(23.78% 0.0654 -0.0592)
OKLCHoklch(23.78% 0.088 317.8)
XYZxyz(2.0422, 1.1628, 3.9870)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C39 #16390C
analogous
#180C39 #2F0C39 #390C2C
triadic
#2F0C39 #392F0C #0C392F
tetradic
#2F0C39 #39180C #16390C #0C2C39
square
#2F0C39 #39180C #16390C #0C2C39
split-complementary
#2F0C39 #2C390C #0C3918
monochromatic
#150519 #150519 #2F0C39 #59176C #82219E

Accessibility & contrast

On white

17.04
#2F0C39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2F0C39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C39
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C39#FFFFFF#000000##FFFFFF
##2F0C391.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3A
Deuteranopia (green-blind)
#0E1D38
Tritanopia (blue-blind)
#2F1421
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0c39;
/* rgb */ color: rgb(47, 12, 57);
/* oklch */ color: oklch(23.8% 0.088 317.8);
Tailwind
colors: {
  custom: {
    50: '#694e6f',
    500: '#2f0c39',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c39;
$custom-light: #694e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c39",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 57
  },
  "hsl": {
    "h": 286.667,
    "s": 65.217,
    "l": 13.529
  },
  "oklch": {
    "l": 0.23777,
    "c": 0.08817,
    "h": 317.8
  },
  "luminance": 0.01163
}

Semantic roles & 50–950 ramp

primary
#2F0C39
secondary
#3C752C
accent
#E84065
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F0C39

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

Preview Lab → · Contrast checker → · Palette generator →

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