#2F0A40#2F0A40

#2F0A40 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.099 H 312.6°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#2F0A40
RGBrgb(47, 10, 64)
HSLhsl(281, 73%, 15%)
HSVhsv(281, 84%, 25%)
CMYKcmyk(26.6%, 84.4%, 0%, 74.9%)
CIE-LABlab(10.50, 28.42, -25.76)
CIE-LCHlch(10.50, 38.36, 317.81°)
OKLaboklab(24.11% 0.0669 -0.0728)
OKLCHoklch(24.11% 0.099 312.6)
XYZxyz(2.2061, 1.1917, 4.9633)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0A40 #1B400A
analogous
#140A40 #2F0A40 #400A36
triadic
#2F0A40 #402F0A #0A402F
tetradic
#2F0A40 #40140A #1B400A #0A3640
square
#2F0A40 #40140A #1B400A #0A3640
split-complementary
#2F0A40 #36400A #0A4014
monochromatic
#13041A #13041A #2F0A40 #561275 #7D1BAA

Accessibility & contrast

On white

16.96
#2F0A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0A40
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0A40#FFFFFF#000000##FFFFFF
##2F0A401.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#051D3F
Tritanopia (blue-blind)
#2D1624
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0a40;
/* rgb */ color: rgb(47, 10, 64);
/* oklch */ color: oklch(24.1% 0.099 312.6);
Tailwind
colors: {
  custom: {
    50: '#6a4d75',
    500: '#2f0a40',
    950: '#000000',
  },
}
SCSS
$custom: #2f0a40;
$custom-light: #6a4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0a40",
  "rgb": {
    "r": 47,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 281.111,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24109,
    "c": 0.09891,
    "h": 312.6
  },
  "luminance": 0.01192
}

Semantic roles & 50–950 ramp

primary
#2F0A40
secondary
#437D29
accent
#F03872
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0A40

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

Preview Lab → · Contrast checker → · Palette generator →

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