#2F072B#2F072B

#2F072B is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.1% C 0.082 H 332.3°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#2F072B
RGBrgb(47, 7, 43)
HSLhsl(306, 74%, 11%)
HSVhsv(306, 85%, 18%)
CMYKcmyk(0%, 85.1%, 8.5%, 81.6%)
CIE-LABlab(8.40, 25.17, -13.82)
CIE-LCHlch(8.40, 28.72, 331.24°)
OKLaboklab(22.11% 0.0723 -0.0379)
OKLCHoklch(22.11% 0.082 332.3)
XYZxyz(1.6843, 0.9309, 2.3760)
Luminance0.0093 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F072B #072F0B
analogous
#1F072F #2F072B #2F0717
triadic
#2F072B #2B2F07 #072B2F
tetradic
#2F072B #2F1F07 #072F0B #07172F
square
#2F072B #2F1F07 #072F0B #07172F
split-complementary
#2F072B #172F07 #072F1F
monochromatic
#1B0418 #1B0418 #2F072B #640F5C #9A178C

Accessibility & contrast

On white

17.70
#2F072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2F072B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F072B
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F072B#FFFFFF#000000##FFFFFF
##2F072B1.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05152C
Deuteranopia (green-blind)
#141A2A
Tritanopia (blue-blind)
#310B18
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2f072b;
/* rgb */ color: rgb(47, 7, 43);
/* oklch */ color: oklch(22.1% 0.082 332.3);
Tailwind
colors: {
  custom: {
    50: '#694b64',
    500: '#2f072b',
    950: '#000000',
  },
}
SCSS
$custom: #2f072b;
$custom-light: #694b64;
$custom-dark: #000000;
JSON
{
  "hex": "#2f072b",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 306,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22112,
    "c": 0.08167,
    "h": 332.3
  },
  "luminance": 0.00931
}

Semantic roles & 50–950 ramp

primary
#2F072B
secondary
#236F2B
accent
#F14A37
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2F072B

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

Preview Lab → · Contrast checker → · Palette generator →

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