#301561#301561

#301561 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.125 H 293.1°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#301561
RGBrgb(48, 21, 97)
HSLhsl(261, 64%, 23%)
HSVhsv(261, 78%, 38%)
CMYKcmyk(50.5%, 78.4%, 0%, 62%)
CIE-LABlab(15.63, 32.26, -40.02)
CIE-LCHlch(15.63, 51.40, 308.87°)
OKLaboklab(28.71% 0.0489 -0.1148)
OKLCHoklch(28.71% 0.125 293.1)
XYZxyz(3.6442, 2.0277, 11.5063)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301561 #466115
analogous
#152061 #301561 #561561
triadic
#301561 #613015 #156130
tetradic
#301561 #611520 #466115 #156156
square
#301561 #611520 #466115 #156156
split-complementary
#301561 #615615 #206115
monochromatic
#0C0519 #170A2F #301561 #492093 #622BC6

Accessibility & contrast

On white

14.94
#301561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#301561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301561
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301561#FFFFFF#000000##FFFFFF
##3015611.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#21293A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301561;
/* rgb */ color: rgb(48, 21, 97);
/* oklch */ color: oklch(28.7% 0.125 293.1);
Tailwind
colors: {
  custom: {
    50: '#6e558f',
    500: '#301561',
    950: '#000000',
  },
}
SCSS
$custom: #301561;
$custom-light: #6e558f;
$custom-dark: #000000;
JSON
{
  "hex": "#301561",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 261.316,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2871,
    "c": 0.12473,
    "h": 293.1
  },
  "luminance": 0.02028
}

Semantic roles & 50–950 ramp

primary
#301561
secondary
#77983A
accent
#E740AC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #301561

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

Preview Lab → · Contrast checker → · Palette generator →

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