#301571#301571

#301571 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.145 H 287.8°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#301571
RGBrgb(48, 21, 113)
HSLhsl(258, 69%, 26%)
HSVhsv(258, 81%, 44%)
CMYKcmyk(57.5%, 81.4%, 0%, 55.7%)
CIE-LABlab(17.26, 37.08, -47.84)
CIE-LCHlch(17.26, 60.53, 307.78°)
OKLaboklab(30.35% 0.0441 -0.1377)
OKLCHoklch(30.35% 0.145 287.8)
XYZxyz(4.4668, 2.3567, 15.8391)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301571 #567115
analogous
#152871 #301571 #5E1571
triadic
#301571 #713015 #157130
tetradic
#301571 #711528 #567115 #15715E
square
#301571 #711528 #567115 #15715E
split-complementary
#301571 #715E15 #287115
monochromatic
#0B051A #1A0B3D #301571 #461FA5 #5C29D7

Accessibility & contrast

On white

14.27
#301571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#301571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301571
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301571#FFFFFF#000000##FFFFFF
##3015711.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301571;
/* rgb */ color: rgb(48, 21, 113);
/* oklch */ color: oklch(30.3% 0.145 287.8);
Tailwind
colors: {
  custom: {
    50: '#71569b',
    500: '#301571',
    950: '#000000',
  },
}
SCSS
$custom: #301571;
$custom-light: #71569b;
$custom-dark: #000000;
JSON
{
  "hex": "#301571",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 257.609,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30346,
    "c": 0.14458,
    "h": 287.8
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#301571
secondary
#87A73B
accent
#EB3CB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301571

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

Preview Lab → · Contrast checker → · Palette generator →

#301571 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva