#2F0740#2F0740

#2F0740 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.8% C 0.103 H 313.1°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#2F0740
RGBrgb(47, 7, 64)
HSLhsl(282, 80%, 14%)
HSVhsv(282, 89%, 25%)
CMYKcmyk(26.6%, 89.1%, 0%, 74.9%)
CIE-LABlab(10.00, 29.84, -26.56)
CIE-LCHlch(10.00, 39.94, 318.33°)
OKLaboklab(23.76% 0.0704 -0.0751)
OKLCHoklch(23.76% 0.103 313.1)
XYZxyz(2.1735, 1.1265, 4.9524)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0740 #184007
analogous
#130740 #2F0740 #400735
triadic
#2F0740 #402F07 #07402F
tetradic
#2F0740 #401307 #184007 #073540
square
#2F0740 #401307 #184007 #073540
split-complementary
#2F0740 #354007 #074013
monochromatic
#14031C #14031C #2F0740 #580D77 #8013AE

Accessibility & contrast

On white

17.14
#2F0740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0740
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0740#FFFFFF#000000##FFFFFF
##2F07401.0017.141.2317.14
#FFFFFF17.141.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#021C3F
Tritanopia (blue-blind)
#2D1523
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0740;
/* rgb */ color: rgb(47, 7, 64);
/* oklch */ color: oklch(23.8% 0.103 313.1);
Tailwind
colors: {
  custom: {
    50: '#6a4c75',
    500: '#2f0740',
    950: '#000000',
  },
}
SCSS
$custom: #2f0740;
$custom-light: #6a4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0740",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 282.105,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23762,
    "c": 0.10296,
    "h": 313.1
  },
  "luminance": 0.01126
}

Semantic roles & 50–950 ramp

primary
#2F0740
secondary
#3F7F24
accent
#F7316C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0740

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

Preview Lab → · Contrast checker → · Palette generator →

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