#2F0A39#2F0A39

#2F0A39 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.091 H 318.2°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#2F0A39
RGBrgb(47, 10, 57)
HSLhsl(287, 70%, 13%)
HSVhsv(287, 82%, 22%)
CMYKcmyk(17.5%, 82.5%, 0%, 77.6%)
CIE-LABlab(9.93, 26.71, -21.66)
CIE-LCHlch(9.93, 34.39, 320.96°)
OKLaboklab(23.53% 0.0679 -0.0608)
OKLCHoklch(23.53% 0.091 318.2)
XYZxyz(2.0192, 1.1169, 3.9793)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0A39 #14390A
analogous
#170A39 #2F0A39 #390A2B
triadic
#2F0A39 #392F0A #0A392F
tetradic
#2F0A39 #39170A #14390A #0A2B39
square
#2F0A39 #39170A #14390A #0A2B39
split-complementary
#2F0A39 #2B390A #0A3917
monochromatic
#15051A #15051A #2F0A39 #5A136D #851CA1

Accessibility & contrast

On white

17.17
#2F0A39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2F0A39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0A39
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0A39#FFFFFF#000000##FFFFFF
##2F0A391.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193A
Deuteranopia (green-blind)
#0C1C38
Tritanopia (blue-blind)
#2F1320
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0a39;
/* rgb */ color: rgb(47, 10, 57);
/* oklch */ color: oklch(23.5% 0.091 318.2);
Tailwind
colors: {
  custom: {
    50: '#6a4d70',
    500: '#2f0a39',
    950: '#000000',
  },
}
SCSS
$custom: #2f0a39;
$custom-light: #6a4d70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0a39",
  "rgb": {
    "r": 47,
    "g": 10,
    "b": 57
  },
  "hsl": {
    "h": 287.234,
    "s": 70.149,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23527,
    "c": 0.09117,
    "h": 318.2
  },
  "luminance": 0.01117
}

Semantic roles & 50–950 ramp

primary
#2F0A39
secondary
#397628
accent
#ED3B61
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2F0A39

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

Preview Lab → · Contrast checker → · Palette generator →

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