#2F0338#2F0338

#2F0338 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.6% C 0.101 H 320.1°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#2F0338
RGBrgb(47, 3, 56)
HSLhsl(290, 90%, 12%)
HSVhsv(290, 95%, 22%)
CMYKcmyk(16.1%, 94.6%, 0%, 78%)
CIE-LABlab(8.61, 30.06, -23.06)
CIE-LCHlch(8.61, 37.88, 322.50°)
OKLaboklab(22.57% 0.0774 -0.0648)
OKLCHoklch(22.57% 0.101 320.1)
XYZxyz(1.9186, 0.9551, 3.8239)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0338 #0C3803
analogous
#150338 #2F0338 #380327
triadic
#2F0338 #382F03 #03382F
tetradic
#2F0338 #381503 #0C3803 #032738
square
#2F0338 #381503 #0C3803 #032738
split-complementary
#2F0338 #273803 #033815
monochromatic
#18021D #18021D #2F0338 #600672 #9109AC

Accessibility & contrast

On white

17.63
#2F0338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0338
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0338#FFFFFF#000000##FFFFFF
##2F03381.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#071A37
Tritanopia (blue-blind)
#2F0E1E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2f0338;
/* rgb */ color: rgb(47, 3, 56);
/* oklch */ color: oklch(22.6% 0.101 320.1);
Tailwind
colors: {
  custom: {
    50: '#6a496f',
    500: '#2f0338',
    950: '#000000',
  },
}
SCSS
$custom: #2f0338;
$custom-light: #6a496f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0338",
  "rgb": {
    "r": 47,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 289.811,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22569,
    "c": 0.10099,
    "h": 320.1
  },
  "luminance": 0.00955
}

Semantic roles & 50–950 ramp

primary
#2F0338
secondary
#2C7B1C
accent
#FF294D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0338

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

Preview Lab → · Contrast checker → · Palette generator →

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