#301564#301564

#301564 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.129 H 292.0°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#301564
RGBrgb(48, 21, 100)
HSLhsl(261, 65%, 24%)
HSVhsv(261, 79%, 39%)
CMYKcmyk(52%, 79%, 0%, 60.8%)
CIE-LABlab(15.93, 33.16, -41.52)
CIE-LCHlch(15.93, 53.14, 308.61°)
OKLaboklab(29.01% 0.0481 -0.1192)
OKLCHoklch(29.01% 0.129 292)
XYZxyz(3.7867, 2.0847, 12.2570)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301564 #496415
analogous
#152164 #301564 #571564
triadic
#301564 #643015 #156430
tetradic
#301564 #641521 #496415 #156457
square
#301564 #641521 #496415 #156457
split-complementary
#301564 #645715 #216415
monochromatic
#0C0519 #180A31 #301564 #482097 #612AC9

Accessibility & contrast

On white

14.82
#301564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#301564 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301564
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301564#FFFFFF#000000##FFFFFF
##3015641.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#1F2A3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301564;
/* rgb */ color: rgb(48, 21, 100);
/* oklch */ color: oklch(29.0% 0.129 292.0);
Tailwind
colors: {
  custom: {
    50: '#6f5591',
    500: '#301564',
    950: '#000000',
  },
}
SCSS
$custom: #301564;
$custom-light: #6f5591;
$custom-dark: #000000;
JSON
{
  "hex": "#301564",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 260.506,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29008,
    "c": 0.12851,
    "h": 292
  },
  "luminance": 0.02085
}

Semantic roles & 50–950 ramp

primary
#301564
secondary
#7A9B3A
accent
#E840AF
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301564

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

Preview Lab → · Contrast checker → · Palette generator →

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