#2F0739#2F0739

#2F0739 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.2% C 0.096 H 318.6°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#2F0739
RGBrgb(47, 7, 57)
HSLhsl(288, 78%, 13%)
HSVhsv(288, 88%, 22%)
CMYKcmyk(17.5%, 87.7%, 0%, 77.6%)
CIE-LABlab(9.42, 28.18, -22.49)
CIE-LCHlch(9.42, 36.06, 321.41°)
OKLaboklab(23.16% 0.0718 -0.0632)
OKLCHoklch(23.16% 0.096 318.6)
XYZxyz(1.9867, 1.0518, 3.9685)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0739 #113907
analogous
#160739 #2F0739 #39072A
triadic
#2F0739 #392F07 #07392F
tetradic
#2F0739 #391607 #113907 #072A39
square
#2F0739 #391607 #113907 #072A39
split-complementary
#2F0739 #2A3907 #073916
monochromatic
#16031B #16031B #2F0739 #5C0E70 #8914A6

Accessibility & contrast

On white

17.35
#2F0739 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2F0739 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0739
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0739#FFFFFF#000000##FFFFFF
##2F07391.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#0A1C38
Tritanopia (blue-blind)
#2F111F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f0739;
/* rgb */ color: rgb(47, 7, 57);
/* oklch */ color: oklch(23.2% 0.096 318.6);
Tailwind
colors: {
  custom: {
    50: '#6a4c70',
    500: '#2f0739',
    950: '#000000',
  },
}
SCSS
$custom: #2f0739;
$custom-light: #6a4c70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0739",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 57
  },
  "hsl": {
    "h": 288,
    "s": 78.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23161,
    "c": 0.09563,
    "h": 318.6
  },
  "luminance": 0.01052
}

Semantic roles & 50–950 ramp

primary
#2F0739
secondary
#347923
accent
#F5335A
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0739

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

Preview Lab → · Contrast checker → · Palette generator →

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