#301572#301572

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

Color values

HEX#301572
RGBrgb(48, 21, 114)
HSLhsl(257, 69%, 26%)
HSVhsv(257, 82%, 45%)
CMYKcmyk(57.9%, 81.6%, 0%, 55.3%)
CIE-LABlab(17.36, 37.38, -48.32)
CIE-LCHlch(17.36, 61.09, 307.73°)
OKLaboklab(30.45% 0.0438 -0.1391)
OKLCHoklch(30.45% 0.146 287.5)
XYZxyz(4.5234, 2.3794, 16.1372)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301572 #577215
analogous
#152972 #301572 #5F1572
triadic
#301572 #723015 #157230
tetradic
#301572 #721529 #577215 #15725F
square
#301572 #721529 #577215 #15725F
split-complementary
#301572 #725F15 #297215
monochromatic
#0B051A #1A0B3E #301572 #461FA6 #5C2AD8

Accessibility & contrast

On white

14.23
#301572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#301572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##301572#FFFFFF#000000##FFFFFF
##3015721.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)
#002D75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#133043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301572;
/* rgb */ color: rgb(48, 21, 114);
/* oklch */ color: oklch(30.5% 0.146 287.5);
Tailwind
colors: {
  custom: {
    50: '#71569c',
    500: '#301572',
    950: '#000000',
  },
}
SCSS
$custom: #301572;
$custom-light: #71569c;
$custom-dark: #000000;
JSON
{
  "hex": "#301572",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 257.419,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30452,
    "c": 0.14579,
    "h": 287.5
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#301572
secondary
#88A83B
accent
#EC3CB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301572

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

Preview Lab → · Contrast checker → · Palette generator →

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