#2F073A#2F073A

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

Color values

HEX#2F073A
RGBrgb(47, 7, 58)
HSLhsl(287, 78%, 13%)
HSVhsv(287, 88%, 23%)
CMYKcmyk(19%, 87.9%, 0%, 77.3%)
CIE-LABlab(9.50, 28.41, -23.08)
CIE-LCHlch(9.50, 36.61, 320.91°)
OKLaboklab(23.24% 0.0716 -0.0649)
OKLCHoklch(23.24% 0.097 317.8)
XYZxyz(2.0119, 1.0619, 4.1012)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F073A #123A07
analogous
#15073A #2F073A #3A072B
triadic
#2F073A #3A2F07 #073A2F
tetradic
#2F073A #3A1507 #123A07 #072B3A
square
#2F073A #3A1507 #123A07 #072B3A
split-complementary
#2F073A #2B3A07 #073A15
monochromatic
#16031B #16031B #2F073A #5B0E71 #8814A7

Accessibility & contrast

On white

17.32
#2F073A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F073A
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F073A#FFFFFF#000000##FFFFFF
##2F073A1.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#091C39
Tritanopia (blue-blind)
#2F1220
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f073a;
/* rgb */ color: rgb(47, 7, 58);
/* oklch */ color: oklch(23.2% 0.097 317.8);
Tailwind
colors: {
  custom: {
    50: '#6a4c70',
    500: '#2f073a',
    950: '#000000',
  },
}
SCSS
$custom: #2f073a;
$custom-light: #6a4c70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f073a",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 58
  },
  "hsl": {
    "h": 287.059,
    "s": 78.462,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23244,
    "c": 0.09666,
    "h": 317.8
  },
  "luminance": 0.01062
}

Semantic roles & 50–950 ramp

primary
#2F073A
secondary
#367923
accent
#F5335D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F073A

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

Preview Lab → · Contrast checker → · Palette generator →

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