#2F0C3A#2F0C3A

#2F0C3A is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.089 H 317.0°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#2F0C3A
RGBrgb(47, 12, 58)
HSLhsl(286, 66%, 14%)
HSVhsv(286, 79%, 23%)
CMYKcmyk(19%, 79.3%, 0%, 77.3%)
CIE-LABlab(10.36, 25.97, -21.70)
CIE-LCHlch(10.36, 33.84, 320.12°)
OKLaboklab(23.86% 0.0653 -0.0609)
OKLCHoklch(23.86% 0.089 317)
XYZxyz(2.0674, 1.1729, 4.1197)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C3A #173A0C
analogous
#180C3A #2F0C3A #3A0C2E
triadic
#2F0C3A #3A2F0C #0C3A2F
tetradic
#2F0C3A #3A180C #173A0C #0C2E3A
square
#2F0C3A #3A180C #173A0C #0C2E3A
split-complementary
#2F0C3A #2E3A0C #0C3A18
monochromatic
#150519 #150519 #2F0C3A #58166D #81219F

Accessibility & contrast

On white

17.01
#2F0C3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C3A
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C3A#FFFFFF#000000##FFFFFF
##2F0C3A1.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#0D1D39
Tritanopia (blue-blind)
#2E1521
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0c3a;
/* rgb */ color: rgb(47, 12, 58);
/* oklch */ color: oklch(23.9% 0.089 317.0);
Tailwind
colors: {
  custom: {
    50: '#694e70',
    500: '#2f0c3a',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c3a;
$custom-light: #694e70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c3a",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 58
  },
  "hsl": {
    "h": 285.652,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23856,
    "c": 0.0893,
    "h": 317
  },
  "luminance": 0.01173
}

Semantic roles & 50–950 ramp

primary
#2F0C3A
secondary
#3D762C
accent
#E93F68
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F0C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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