#2F0347#2F0347

#2F0347 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 24.0% C 0.116 H 309.1°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#2F0347
RGBrgb(47, 3, 71)
HSLhsl(279, 92%, 15%)
HSVhsv(279, 96%, 28%)
CMYKcmyk(33.8%, 95.8%, 0%, 72.2%)
CIE-LABlab(9.99, 33.48, -31.53)
CIE-LCHlch(9.99, 45.99, 316.72°)
OKLaboklab(23.95% 0.0728 -0.0897)
OKLCHoklch(23.95% 0.116 309.1)
XYZxyz(2.3419, 1.1244, 6.0537)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0347 #1B4703
analogous
#0D0347 #2F0347 #47033D
triadic
#2F0347 #472F03 #03472F
tetradic
#2F0347 #470D03 #1B4703 #033D47
square
#2F0347 #470D03 #1B4703 #033D47
split-complementary
#2F0347 #3D4703 #03470D
monochromatic
#13011D #13011D #2F0347 #560582 #7D08BC

Accessibility & contrast

On white

17.15
#2F0347 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2F0347 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0347
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0347#FFFFFF#000000##FFFFFF
##2F03471.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A49
Deuteranopia (green-blind)
#001C46
Tritanopia (blue-blind)
#2B1627
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0347;
/* rgb */ color: rgb(47, 3, 71);
/* oklch */ color: oklch(24.0% 0.116 309.1);
Tailwind
colors: {
  custom: {
    50: '#6b4a7b',
    500: '#2f0347',
    950: '#000000',
  },
}
SCSS
$custom: #2f0347;
$custom-light: #6b4a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0347",
  "rgb": {
    "r": 47,
    "g": 3,
    "b": 71
  },
  "hsl": {
    "h": 278.824,
    "s": 91.892,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23954,
    "c": 0.11554,
    "h": 309.1
  },
  "luminance": 0.01124
}

Semantic roles & 50–950 ramp

primary
#2F0347
secondary
#43881E
accent
#FF2974
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2F0347

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

Preview Lab → · Contrast checker → · Palette generator →

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