#2F0847#2F0847

#2F0847 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.5% C 0.109 H 308.1°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#2F0847
RGBrgb(47, 8, 71)
HSLhsl(277, 80%, 15%)
HSVhsv(277, 89%, 28%)
CMYKcmyk(33.8%, 88.7%, 0%, 72.2%)
CIE-LABlab(10.80, 31.10, -30.21)
CIE-LCHlch(10.80, 43.35, 315.84°)
OKLaboklab(24.52% 0.0674 -0.0859)
OKLCHoklch(24.52% 0.109 308.1)
XYZxyz(2.3962, 1.2330, 6.0718)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0847 #204708
analogous
#0F0847 #2F0847 #47083F
triadic
#2F0847 #472F08 #08472F
tetradic
#2F0847 #470F08 #204708 #083F47
square
#2F0847 #470F08 #204708 #083F47
split-complementary
#2F0847 #3F4708 #08470F
monochromatic
#12031C #12031C #2F0847 #530E7E #7814B5

Accessibility & contrast

On white

16.85
#2F0847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2F0847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0847
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0847#FFFFFF#000000##FFFFFF
##2F08471.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C49
Deuteranopia (green-blind)
#001D46
Tritanopia (blue-blind)
#2B1828
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0847;
/* rgb */ color: rgb(47, 8, 71);
/* oklch */ color: oklch(24.5% 0.109 308.1);
Tailwind
colors: {
  custom: {
    50: '#6b4d7b',
    500: '#2f0847',
    950: '#000000',
  },
}
SCSS
$custom: #2f0847;
$custom-light: #6b4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0847",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 277.143,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24517,
    "c": 0.10917,
    "h": 308.1
  },
  "luminance": 0.01233
}

Semantic roles & 50–950 ramp

primary
#2F0847
secondary
#4A8526
accent
#F6327C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2F0847

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

Preview Lab → · Contrast checker → · Palette generator →

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