#2F0638#2F0638

#2F0638 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.0% C 0.096 H 319.6°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#2F0638
RGBrgb(47, 6, 56)
HSLhsl(289, 81%, 12%)
HSVhsv(289, 89%, 22%)
CMYKcmyk(16.1%, 89.3%, 0%, 78%)
CIE-LABlab(9.16, 28.46, -22.18)
CIE-LCHlch(9.16, 36.08, 322.07°)
OKLaboklab(22.95% 0.0732 -0.0623)
OKLCHoklch(22.95% 0.096 319.6)
XYZxyz(1.9511, 1.0202, 3.8348)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0638 #0F3806
analogous
#160638 #2F0638 #380628
triadic
#2F0638 #382F06 #06382F
tetradic
#2F0638 #381606 #0F3806 #062838
square
#2F0638 #381606 #0F3806 #062838
split-complementary
#2F0638 #283806 #063816
monochromatic
#17031C #17031C #2F0638 #5D0C6F #8C12A7

Accessibility & contrast

On white

17.44
#2F0638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2F0638 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0638
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0638#FFFFFF#000000##FFFFFF
##2F06381.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#0A1B37
Tritanopia (blue-blind)
#2F101F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f0638;
/* rgb */ color: rgb(47, 6, 56);
/* oklch */ color: oklch(23.0% 0.096 319.6);
Tailwind
colors: {
  custom: {
    50: '#6a4b6f',
    500: '#2f0638',
    950: '#000000',
  },
}
SCSS
$custom: #2f0638;
$custom-light: #6a4b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0638",
  "rgb": {
    "r": 47,
    "g": 6,
    "b": 56
  },
  "hsl": {
    "h": 289.2,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22954,
    "c": 0.09615,
    "h": 319.6
  },
  "luminance": 0.0102
}

Semantic roles & 50–950 ramp

primary
#2F0638
secondary
#317821
accent
#F73154
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0638

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

Preview Lab → · Contrast checker → · Palette generator →

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