#2F0741#2F0741

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

Color values

HEX#2F0741
RGBrgb(47, 7, 65)
HSLhsl(281, 81%, 14%)
HSVhsv(281, 89%, 25%)
CMYKcmyk(27.7%, 89.2%, 0%, 74.5%)
CIE-LABlab(10.09, 30.08, -27.13)
CIE-LCHlch(10.09, 40.50, 317.95°)
OKLaboklab(23.85% 0.0702 -0.0768)
OKLCHoklch(23.85% 0.104 312.4)
XYZxyz(2.2022, 1.1380, 5.1037)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0741 #194107
analogous
#120741 #2F0741 #410736
triadic
#2F0741 #412F07 #07412F
tetradic
#2F0741 #411207 #194107 #073641
square
#2F0741 #411207 #194107 #073641
split-complementary
#2F0741 #364107 #074112
monochromatic
#14031C #14031C #2F0741 #570D78 #7F13B0

Accessibility & contrast

On white

17.11
#2F0741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0741
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0741#FFFFFF#000000##FFFFFF
##2F07411.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#011C40
Tritanopia (blue-blind)
#2D1524
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0741;
/* rgb */ color: rgb(47, 7, 65);
/* oklch */ color: oklch(23.9% 0.104 312.4);
Tailwind
colors: {
  custom: {
    50: '#6a4c76',
    500: '#2f0741',
    950: '#000000',
  },
}
SCSS
$custom: #2f0741;
$custom-light: #6a4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0741",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 65
  },
  "hsl": {
    "h": 281.379,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23852,
    "c": 0.10402,
    "h": 312.4
  },
  "luminance": 0.01138
}

Semantic roles & 50–950 ramp

primary
#2F0741
secondary
#408024
accent
#F7316E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0741

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

Preview Lab → · Contrast checker → · Palette generator →

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