#2F1571#2F1571

#2F1571 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.145 H 287.1°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#2F1571
RGBrgb(47, 21, 113)
HSLhsl(257, 69%, 26%)
HSVhsv(257, 81%, 44%)
CMYKcmyk(58.4%, 81.4%, 0%, 55.7%)
CIE-LABlab(17.14, 36.94, -48.03)
CIE-LCHlch(17.14, 60.60, 307.56°)
OKLaboklab(30.24% 0.0425 -0.1383)
OKLCHoklch(30.24% 0.145 287.1)
XYZxyz(4.4202, 2.3327, 15.8369)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1571 #577115
analogous
#152971 #2F1571 #5D1571
triadic
#2F1571 #712F15 #15712F
tetradic
#2F1571 #711529 #577115 #15715D
square
#2F1571 #711529 #577115 #15715D
split-complementary
#2F1571 #715D15 #297115
monochromatic
#0B051A #1A0B3D #2F1571 #441FA5 #5A29D7

Accessibility & contrast

On white

14.32
#2F1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1571
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1571#FFFFFF#000000##FFFFFF
##2F15711.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#113043
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1571;
/* rgb */ color: rgb(47, 21, 113);
/* oklch */ color: oklch(30.2% 0.145 287.1);
Tailwind
colors: {
  custom: {
    50: '#70569b',
    500: '#2f1571',
    950: '#000000',
  },
}
SCSS
$custom: #2f1571;
$custom-light: #70569b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1571",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 256.957,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3024,
    "c": 0.14464,
    "h": 287.1
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#2F1571
secondary
#88A73B
accent
#EB3CBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1571

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

Preview Lab → · Contrast checker → · Palette generator →

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