#2F0738#2F0738

#2F0738 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.1% C 0.095 H 319.5°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#2F0738
RGBrgb(47, 7, 56)
HSLhsl(289, 78%, 12%)
HSVhsv(289, 88%, 22%)
CMYKcmyk(16.1%, 87.5%, 0%, 78%)
CIE-LABlab(9.34, 27.95, -21.90)
CIE-LCHlch(9.34, 35.51, 321.93°)
OKLaboklab(23.08% 0.0719 -0.0615)
OKLCHoklch(23.08% 0.095 319.5)
XYZxyz(1.9620, 1.0419, 3.8384)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0738 #103807
analogous
#170738 #2F0738 #380728
triadic
#2F0738 #382F07 #07382F
tetradic
#2F0738 #381707 #103807 #072838
square
#2F0738 #381707 #103807 #072838
split-complementary
#2F0738 #283807 #073817
monochromatic
#17031B #17031B #2F0738 #5D0E6E #8A15A5

Accessibility & contrast

On white

17.38
#2F0738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0738
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0738#FFFFFF#000000##FFFFFF
##2F07381.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#0B1B37
Tritanopia (blue-blind)
#2F111F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f0738;
/* rgb */ color: rgb(47, 7, 56);
/* oklch */ color: oklch(23.1% 0.095 319.5);
Tailwind
colors: {
  custom: {
    50: '#6a4b6f',
    500: '#2f0738',
    950: '#000000',
  },
}
SCSS
$custom: #2f0738;
$custom-light: #6a4b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0738",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 56
  },
  "hsl": {
    "h": 288.98,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23079,
    "c": 0.09459,
    "h": 319.5
  },
  "luminance": 0.01042
}

Semantic roles & 50–950 ramp

primary
#2F0738
secondary
#337823
accent
#F43457
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0738

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

Preview Lab → · Contrast checker → · Palette generator →

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