#2F1573#2F1573

#2F1573 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.147 H 286.5°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2F1573
RGBrgb(47, 21, 115)
HSLhsl(257, 69%, 27%)
HSVhsv(257, 82%, 45%)
CMYKcmyk(59.1%, 81.7%, 0%, 54.9%)
CIE-LABlab(17.36, 37.55, -48.98)
CIE-LCHlch(17.36, 61.71, 307.48°)
OKLaboklab(30.45% 0.0418 -0.141)
OKLCHoklch(30.45% 0.147 286.5)
XYZxyz(4.5340, 2.3782, 16.4365)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1573 #597315
analogous
#152A73 #2F1573 #5E1573
triadic
#2F1573 #732F15 #15732F
tetradic
#2F1573 #73152A #597315 #15735E
square
#2F1573 #73152A #597315 #15735E
split-complementary
#2F1573 #735E15 #2A7315
monochromatic
#0B051A #1A0C3F #2F1573 #441EA7 #5A2AD8

Accessibility & contrast

On white

14.23
#2F1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1573
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1573#FFFFFF#000000##FFFFFF
##2F15731.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#0E3044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1573;
/* rgb */ color: rgb(47, 21, 115);
/* oklch */ color: oklch(30.5% 0.147 286.5);
Tailwind
colors: {
  custom: {
    50: '#71569c',
    500: '#2f1573',
    950: '#000000',
  },
}
SCSS
$custom: #2f1573;
$custom-light: #71569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1573",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 256.596,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30454,
    "c": 0.14709,
    "h": 286.5
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#2F1573
secondary
#8BA93B
accent
#EC3CBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1573

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

Preview Lab → · Contrast checker → · Palette generator →

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