#2F0C40#2F0C40

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

Color values

HEX#2F0C40
RGBrgb(47, 12, 64)
HSLhsl(280, 68%, 15%)
HSVhsv(280, 81%, 25%)
CMYKcmyk(26.6%, 81.2%, 0%, 74.9%)
CIE-LABlab(10.83, 27.47, -25.22)
CIE-LCHlch(10.83, 37.29, 317.44°)
OKLaboklab(24.35% 0.0646 -0.0713)
OKLCHoklch(24.35% 0.096 312.2)
XYZxyz(2.2290, 1.2375, 4.9709)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C40 #1D400C
analogous
#150C40 #2F0C40 #400C37
triadic
#2F0C40 #402F0C #0C402F
tetradic
#2F0C40 #40150C #1D400C #0C3740
square
#2F0C40 #40150C #1D400C #0C3740
split-complementary
#2F0C40 #37400C #0C4015
monochromatic
#13051A #13051A #2F0C40 #551674 #7B1FA7

Accessibility & contrast

On white

16.84
#2F0C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C40
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C40#FFFFFF#000000##FFFFFF
##2F0C401.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#061E3F
Tritanopia (blue-blind)
#2D1725
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0c40;
/* rgb */ color: rgb(47, 12, 64);
/* oklch */ color: oklch(24.3% 0.096 312.2);
Tailwind
colors: {
  custom: {
    50: '#6a4e75',
    500: '#2f0c40',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c40;
$custom-light: #6a4e75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c40",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 280.385,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24347,
    "c": 0.09618,
    "h": 312.2
  },
  "luminance": 0.01237
}

Semantic roles & 50–950 ramp

primary
#2F0C40
secondary
#467C2C
accent
#EB3D76
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0C40

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

Preview Lab → · Contrast checker → · Palette generator →

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