#2F0C38#2F0C38

#2F0C38 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.7% C 0.087 H 318.7°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#2F0C38
RGBrgb(47, 12, 56)
HSLhsl(288, 65%, 13%)
HSVhsv(288, 79%, 22%)
CMYKcmyk(16.1%, 78.6%, 0%, 78%)
CIE-LABlab(10.21, 25.49, -20.50)
CIE-LCHlch(10.21, 32.71, 321.19°)
OKLaboklab(23.7% 0.0654 -0.0574)
OKLCHoklch(23.7% 0.087 318.7)
XYZxyz(2.0175, 1.1529, 3.8569)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C38 #15380C
analogous
#190C38 #2F0C38 #380C2B
triadic
#2F0C38 #382F0C #0C382F
tetradic
#2F0C38 #38190C #15380C #0C2B38
square
#2F0C38 #38190C #15380C #0C2B38
split-complementary
#2F0C38 #2B380C #0C3819
monochromatic
#150519 #150519 #2F0C38 #59176A #84229D

Accessibility & contrast

On white

17.06
#2F0C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C38
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C38#FFFFFF#000000##FFFFFF
##2F0C381.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A39
Deuteranopia (green-blind)
#0F1D37
Tritanopia (blue-blind)
#2F1420
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0c38;
/* rgb */ color: rgb(47, 12, 56);
/* oklch */ color: oklch(23.7% 0.087 318.7);
Tailwind
colors: {
  custom: {
    50: '#694e6f',
    500: '#2f0c38',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c38;
$custom-light: #694e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c38",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 287.727,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.237,
    "c": 0.08704,
    "h": 318.7
  },
  "luminance": 0.01153
}

Semantic roles & 50–950 ramp

primary
#2F0C38
secondary
#3B742C
accent
#E84062
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F0C38

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

Preview Lab → · Contrast checker → · Palette generator →

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