#2F0C3B#2F0C3B

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

Color values

HEX#2F0C3B
RGBrgb(47, 12, 59)
HSLhsl(285, 66%, 14%)
HSVhsv(285, 80%, 23%)
CMYKcmyk(20.3%, 79.7%, 0%, 76.9%)
CIE-LABlab(10.43, 26.22, -22.30)
CIE-LCHlch(10.43, 34.42, 319.62°)
OKLaboklab(23.94% 0.0652 -0.0627)
OKLCHoklch(23.94% 0.09 316.1)
XYZxyz(2.0931, 1.1831, 4.2549)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C3B #183B0C
analogous
#180C3B #2F0C3B #3B0C30
triadic
#2F0C3B #3B2F0C #0C3B2F
tetradic
#2F0C3B #3B180C #183B0C #0C303B
square
#2F0C3B #3B180C #183B0C #0C303B
split-complementary
#2F0C3B #303B0C #0C3B18
monochromatic
#140519 #140519 #2F0C3B #58166E #8021A1

Accessibility & contrast

On white

16.98
#2F0C3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C3B
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C3B#FFFFFF#000000##FFFFFF
##2F0C3B1.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3C
Deuteranopia (green-blind)
#0C1D3A
Tritanopia (blue-blind)
#2E1522
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0c3b;
/* rgb */ color: rgb(47, 12, 59);
/* oklch */ color: oklch(23.9% 0.090 316.1);
Tailwind
colors: {
  custom: {
    50: '#6a4e71',
    500: '#2f0c3b',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c3b;
$custom-light: #6a4e71;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c3b",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 59
  },
  "hsl": {
    "h": 284.681,
    "s": 66.197,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23935,
    "c": 0.09044,
    "h": 316.1
  },
  "luminance": 0.01183
}

Semantic roles & 50–950 ramp

primary
#2F0C3B
secondary
#3F772C
accent
#E93F6A
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F0C3B

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

Preview Lab → · Contrast checker → · Palette generator →

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