#2F072C#2F072C

#2F072C is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.2% C 0.083 H 331.2°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#2F072C
RGBrgb(47, 7, 44)
HSLhsl(305, 74%, 11%)
HSVhsv(305, 85%, 18%)
CMYKcmyk(0%, 85.1%, 6.4%, 81.6%)
CIE-LABlab(8.47, 25.37, -14.46)
CIE-LCHlch(8.47, 29.21, 330.32°)
OKLaboklab(22.18% 0.0724 -0.0398)
OKLCHoklch(22.18% 0.083 331.2)
XYZxyz(1.7029, 0.9383, 2.4738)
Luminance0.0094 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F072C #072F0A
analogous
#1E072F #2F072C #2F0718
triadic
#2F072C #2C2F07 #072C2F
tetradic
#2F072C #2F1E07 #072F0A #07182F
square
#2F072C #2F1E07 #072F0A #07182F
split-complementary
#2F072C #182F07 #072F1E
monochromatic
#1B0419 #1B0419 #2F072C #640F5E #9A1790

Accessibility & contrast

On white

17.68
#2F072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F072C
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F072C#FFFFFF#000000##FFFFFF
##2F072C1.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05152D
Deuteranopia (green-blind)
#131A2B
Tritanopia (blue-blind)
#310B18
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2f072c;
/* rgb */ color: rgb(47, 7, 44);
/* oklch */ color: oklch(22.2% 0.083 331.2);
Tailwind
colors: {
  custom: {
    50: '#694b65',
    500: '#2f072c',
    950: '#000000',
  },
}
SCSS
$custom: #2f072c;
$custom-light: #694b65;
$custom-dark: #000000;
JSON
{
  "hex": "#2f072c",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 304.5,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22179,
    "c": 0.08261,
    "h": 331.2
  },
  "luminance": 0.00938
}

Semantic roles & 50–950 ramp

primary
#2F072C
secondary
#236F29
accent
#F14537
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2F072C

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

Preview Lab → · Contrast checker → · Palette generator →

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