#2F0C3F#2F0C3F

#2F0C3F is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.095 H 312.9°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#2F0C3F
RGBrgb(47, 12, 63)
HSLhsl(281, 68%, 15%)
HSVhsv(281, 81%, 25%)
CMYKcmyk(25.4%, 81%, 0%, 75.3%)
CIE-LABlab(10.75, 27.21, -24.64)
CIE-LCHlch(10.75, 36.71, 317.84°)
OKLaboklab(24.26% 0.0647 -0.0696)
OKLCHoklch(24.26% 0.095 312.9)
XYZxyz(2.2008, 1.2262, 4.8224)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C3F #1C3F0C
analogous
#150C3F #2F0C3F #3F0C36
triadic
#2F0C3F #3F2F0C #0C3F2F
tetradic
#2F0C3F #3F150C #1C3F0C #0C363F
square
#2F0C3F #3F150C #1C3F0C #0C363F
split-complementary
#2F0C3F #363F0C #0C3F15
monochromatic
#13051A #13051A #2F0C3F #551672 #7C20A6

Accessibility & contrast

On white

16.86
#2F0C3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2F0C3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C3F
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C3F#FFFFFF#000000##FFFFFF
##2F0C3F1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#071E3E
Tritanopia (blue-blind)
#2D1724
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0c3f;
/* rgb */ color: rgb(47, 12, 63);
/* oklch */ color: oklch(24.3% 0.095 312.9);
Tailwind
colors: {
  custom: {
    50: '#6a4e74',
    500: '#2f0c3f',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c3f;
$custom-light: #6a4e74;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c3f",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 63
  },
  "hsl": {
    "h": 281.176,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24263,
    "c": 0.09503,
    "h": 312.9
  },
  "luminance": 0.01226
}

Semantic roles & 50–950 ramp

primary
#2F0C3F
secondary
#457B2C
accent
#EB3D74
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0C3F

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

Preview Lab → · Contrast checker → · Palette generator →

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