#2F0334#2F0334

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

Color values

HEX#2F0334
RGBrgb(47, 3, 52)
HSLhsl(294, 89%, 11%)
HSVhsv(294, 94%, 20%)
CMYKcmyk(9.6%, 94.2%, 0%, 79.6%)
CIE-LABlab(8.28, 29.21, -20.67)
CIE-LCHlch(8.28, 35.78, 324.71°)
OKLaboklab(22.24% 0.0782 -0.0578)
OKLCHoklch(22.24% 0.097 323.5)
XYZxyz(1.8246, 0.9175, 3.3291)
Luminance0.0092 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0334 #083403
analogous
#160334 #2F0334 #340320
triadic
#2F0334 #342F03 #03342F
tetradic
#2F0334 #341603 #083403 #032034
square
#2F0334 #341603 #083403 #032034
split-complementary
#2F0334 #203403 #033416
monochromatic
#1A021D #1A021D #2F0334 #63066E #980AA8

Accessibility & contrast

On white

17.75
#2F0334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0334
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0334#FFFFFF#000000##FFFFFF
##2F03341.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001535
Deuteranopia (green-blind)
#0B1A33
Tritanopia (blue-blind)
#300C1B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2f0334;
/* rgb */ color: rgb(47, 3, 52);
/* oklch */ color: oklch(22.2% 0.097 323.5);
Tailwind
colors: {
  custom: {
    50: '#6a496c',
    500: '#2f0334',
    950: '#000000',
  },
}
SCSS
$custom: #2f0334;
$custom-light: #6a496c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0334",
  "rgb": {
    "r": 47,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 293.878,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.22236,
    "c": 0.09724,
    "h": 323.5
  },
  "luminance": 0.00917
}

Semantic roles & 50–950 ramp

primary
#2F0334
secondary
#25771C
accent
#FF293F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0334

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

Preview Lab → · Contrast checker → · Palette generator →

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