#2F072A#2F072A

#2F072A is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.0% C 0.081 H 333.5°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#2F072A
RGBrgb(47, 7, 42)
HSLhsl(308, 74%, 11%)
HSVhsv(308, 85%, 18%)
CMYKcmyk(0%, 85.1%, 10.6%, 81.6%)
CIE-LABlab(8.34, 24.98, -13.17)
CIE-LCHlch(8.34, 28.24, 332.21°)
OKLaboklab(22.05% 0.0722 -0.0361)
OKLCHoklch(22.05% 0.081 333.5)
XYZxyz(1.6662, 0.9236, 2.2806)
Luminance0.0092 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F072A #072F0C
analogous
#20072F #2F072A #2F0716
triadic
#2F072A #2A2F07 #072A2F
tetradic
#2F072A #2F2007 #072F0C #07162F
square
#2F072A #2F2007 #072F0C #07162F
split-complementary
#2F072A #162F07 #072F20
monochromatic
#1B0418 #1B0418 #2F072A #640F5A #9A1789

Accessibility & contrast

On white

17.73
#2F072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2F072A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F072A
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F072A#FFFFFF#000000##FFFFFF
##2F072A1.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06142B
Deuteranopia (green-blind)
#141A29
Tritanopia (blue-blind)
#320A17
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2f072a;
/* rgb */ color: rgb(47, 7, 42);
/* oklch */ color: oklch(22.0% 0.081 333.5);
Tailwind
colors: {
  custom: {
    50: '#694b63',
    500: '#2f072a',
    950: '#000000',
  },
}
SCSS
$custom: #2f072a;
$custom-light: #694b63;
$custom-dark: #000000;
JSON
{
  "hex": "#2f072a",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 307.5,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22045,
    "c": 0.08074,
    "h": 333.5
  },
  "luminance": 0.00923
}

Semantic roles & 50–950 ramp

primary
#2F072A
secondary
#236F2D
accent
#F14E37
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2F072A

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

Preview Lab → · Contrast checker → · Palette generator →

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