#2F0B40#2F0B40

#2F0B40 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.098 H 312.4°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#2F0B40
RGBrgb(47, 11, 64)
HSLhsl(281, 71%, 15%)
HSVhsv(281, 83%, 25%)
CMYKcmyk(26.6%, 82.8%, 0%, 74.9%)
CIE-LABlab(10.66, 27.95, -25.50)
CIE-LCHlch(10.66, 37.84, 317.63°)
OKLaboklab(24.23% 0.0658 -0.0721)
OKLCHoklch(24.23% 0.098 312.4)
XYZxyz(2.2172, 1.2139, 4.9670)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B40 #1C400B
analogous
#150B40 #2F0B40 #400B37
triadic
#2F0B40 #402F0B #0B402F
tetradic
#2F0B40 #40150B #1C400B #0B3740
square
#2F0B40 #40150B #1C400B #0B3740
split-complementary
#2F0B40 #37400B #0B4015
monochromatic
#13041A #13041A #2F0B40 #551474 #7C1DA8

Accessibility & contrast

On white

16.90
#2F0B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0B40
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B40#FFFFFF#000000##FFFFFF
##2F0B401.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0b40;
/* rgb */ color: rgb(47, 11, 64);
/* oklch */ color: oklch(24.2% 0.098 312.4);
Tailwind
colors: {
  custom: {
    50: '#6a4e75',
    500: '#2f0b40',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b40;
$custom-light: #6a4e75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b40",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 280.755,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24225,
    "c": 0.09758,
    "h": 312.4
  },
  "luminance": 0.01214
}

Semantic roles & 50–950 ramp

primary
#2F0B40
secondary
#457D2A
accent
#ED3A74
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0B40

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

Preview Lab → · Contrast checker → · Palette generator →

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