#2F1476#2F1476

#2F1476 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.152 H 285.9°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#2F1476
RGBrgb(47, 20, 118)
HSLhsl(257, 71%, 27%)
HSVhsv(257, 83%, 46%)
CMYKcmyk(60.2%, 83.1%, 0%, 53.7%)
CIE-LABlab(17.52, 38.94, -50.65)
CIE-LCHlch(17.52, 63.89, 307.55°)
OKLaboklab(30.66% 0.0415 -0.1459)
OKLCHoklch(30.66% 0.152 285.9)
XYZxyz(4.6915, 2.4124, 17.3545)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1476 #5B7614
analogous
#142A76 #2F1476 #601476
triadic
#2F1476 #762F14 #14762F
tetradic
#2F1476 #76142A #5B7614 #147660
square
#2F1476 #76142A #5B7614 #147660
split-complementary
#2F1476 #766014 #2A7614
monochromatic
#0A041A #1A0B42 #2F1476 #441DAA #5A2ADB

Accessibility & contrast

On white

14.16
#2F1476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F1476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1476
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1476#FFFFFF#000000##FFFFFF
##2F14761.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#093145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1476;
/* rgb */ color: rgb(47, 20, 118);
/* oklch */ color: oklch(30.7% 0.152 285.9);
Tailwind
colors: {
  custom: {
    50: '#71569f',
    500: '#2f1476',
    950: '#000000',
  },
}
SCSS
$custom: #2f1476;
$custom-light: #71569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1476",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 256.531,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30662,
    "c": 0.15168,
    "h": 285.9
  },
  "luminance": 0.02413
}

Semantic roles & 50–950 ramp

primary
#2F1476
secondary
#8DAC3A
accent
#EE3ABC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #2F1476

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

Preview Lab → · Contrast checker → · Palette generator →

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