#2F0742#2F0742

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

Color values

HEX#2F0742
RGBrgb(47, 7, 66)
HSLhsl(281, 81%, 14%)
HSVhsv(281, 89%, 26%)
CMYKcmyk(28.8%, 89.4%, 0%, 74.1%)
CIE-LABlab(10.18, 30.32, -27.69)
CIE-LCHlch(10.18, 41.06, 317.60°)
OKLaboklab(23.94% 0.0699 -0.0785)
OKLCHoklch(23.94% 0.105 311.7)
XYZxyz(2.2315, 1.1497, 5.2576)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0742 #1A4207
analogous
#120742 #2F0742 #420738
triadic
#2F0742 #422F07 #07422F
tetradic
#2F0742 #421207 #1A4207 #073842
square
#2F0742 #421207 #1A4207 #073842
split-complementary
#2F0742 #384207 #074212
monochromatic
#14031C #14031C #2F0742 #560D79 #7E13B1

Accessibility & contrast

On white

17.07
#2F0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0742
17.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0742#FFFFFF#000000##FFFFFF
##2F07421.0017.071.2317.07
#FFFFFF17.071.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001D41
Tritanopia (blue-blind)
#2D1625
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0742;
/* rgb */ color: rgb(47, 7, 66);
/* oklch */ color: oklch(23.9% 0.105 311.7);
Tailwind
colors: {
  custom: {
    50: '#6b4c77',
    500: '#2f0742',
    950: '#000000',
  },
}
SCSS
$custom: #2f0742;
$custom-light: #6b4c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0742",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 280.678,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23942,
    "c": 0.10508,
    "h": 311.7
  },
  "luminance": 0.0115
}

Semantic roles & 50–950 ramp

primary
#2F0742
secondary
#428124
accent
#F73171
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0742

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

Preview Lab → · Contrast checker → · Palette generator →

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