#2F0840#2F0840

#2F0840 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.9% C 0.102 H 312.9°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#2F0840
RGBrgb(47, 8, 64)
HSLhsl(282, 78%, 14%)
HSVhsv(282, 88%, 25%)
CMYKcmyk(26.6%, 87.5%, 0%, 74.9%)
CIE-LABlab(10.17, 29.36, -26.29)
CIE-LCHlch(10.17, 39.41, 318.15°)
OKLaboklab(23.88% 0.0692 -0.0744)
OKLCHoklch(23.88% 0.102 312.9)
XYZxyz(2.1844, 1.1482, 4.9561)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0840 #194008
analogous
#130840 #2F0840 #400835
triadic
#2F0840 #402F08 #08402F
tetradic
#2F0840 #401308 #194008 #083540
square
#2F0840 #401308 #194008 #083540
split-complementary
#2F0840 #354008 #084013
monochromatic
#14031B #14031B #2F0840 #570F76 #7F16AD

Accessibility & contrast

On white

17.08
#2F0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2F0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0840
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0840#FFFFFF#000000##FFFFFF
##2F08401.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#031D3F
Tritanopia (blue-blind)
#2D1524
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0840;
/* rgb */ color: rgb(47, 8, 64);
/* oklch */ color: oklch(23.9% 0.102 312.9);
Tailwind
colors: {
  custom: {
    50: '#6a4c75',
    500: '#2f0840',
    950: '#000000',
  },
}
SCSS
$custom: #2f0840;
$custom-light: #6a4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0840",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 281.786,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23879,
    "c": 0.10159,
    "h": 312.9
  },
  "luminance": 0.01148
}

Semantic roles & 50–950 ramp

primary
#2F0840
secondary
#407E25
accent
#F4346E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0840

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

Preview Lab → · Contrast checker → · Palette generator →

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