#2F0234#2F0234

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

Color values

HEX#2F0234
RGBrgb(47, 2, 52)
HSLhsl(294, 93%, 11%)
HSVhsv(294, 96%, 20%)
CMYKcmyk(9.6%, 96.2%, 0%, 79.6%)
CIE-LABlab(8.09, 29.77, -20.98)
CIE-LCHlch(8.09, 36.42, 324.83°)
OKLaboklab(22.1% 0.0797 -0.0587)
OKLCHoklch(22.1% 0.099 323.6)
XYZxyz(1.8138, 0.8958, 3.3255)
Luminance0.0090 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0234 #073402
analogous
#160234 #2F0234 #340220
triadic
#2F0234 #342F02 #02342F
tetradic
#2F0234 #341602 #073402 #022034
square
#2F0234 #341602 #073402 #022034
split-complementary
#2F0234 #203402 #023416
monochromatic
#1B011D #1B011D #2F0234 #64046F #9A07AA

Accessibility & contrast

On white

17.81
#2F0234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0234
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0234#FFFFFF#000000##FFFFFF
##2F02341.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001435
Deuteranopia (green-blind)
#0A1933
Tritanopia (blue-blind)
#300B1B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2f0234;
/* rgb */ color: rgb(47, 2, 52);
/* oklch */ color: oklch(22.1% 0.099 323.6);
Tailwind
colors: {
  custom: {
    50: '#6a486c',
    500: '#2f0234',
    950: '#000000',
  },
}
SCSS
$custom: #2f0234;
$custom-light: #6a486c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0234",
  "rgb": {
    "r": 47,
    "g": 2,
    "b": 52
  },
  "hsl": {
    "h": 294,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.221,
    "c": 0.099,
    "h": 323.6
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#2F0234
secondary
#23781A
accent
#FF293E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0234

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

Preview Lab → · Contrast checker → · Palette generator →

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