#301566#301566

#301566 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.131 H 291.3°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#301566
RGBrgb(48, 21, 102)
HSLhsl(260, 66%, 24%)
HSVhsv(260, 79%, 40%)
CMYKcmyk(52.9%, 79.4%, 0%, 60%)
CIE-LABlab(16.12, 33.76, -42.52)
CIE-LCHlch(16.12, 54.29, 308.45°)
OKLaboklab(29.21% 0.0475 -0.1221)
OKLCHoklch(29.21% 0.131 291.3)
XYZxyz(3.8847, 2.1239, 12.7731)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301566 #4B6615
analogous
#152366 #301566 #591566
triadic
#301566 #663015 #156630
tetradic
#301566 #661523 #4B6615 #156659
square
#301566 #661523 #4B6615 #156659
split-complementary
#301566 #665915 #236615
monochromatic
#0C0519 #180B33 #301566 #481F99 #602ACC

Accessibility & contrast

On white

14.74
#301566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301566
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301566#FFFFFF#000000##FFFFFF
##3015661.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#1E2B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301566;
/* rgb */ color: rgb(48, 21, 102);
/* oklch */ color: oklch(29.2% 0.131 291.3);
Tailwind
colors: {
  custom: {
    50: '#6f5692',
    500: '#301566',
    950: '#000000',
  },
}
SCSS
$custom: #301566;
$custom-light: #6f5692;
$custom-dark: #000000;
JSON
{
  "hex": "#301566",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 260,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29208,
    "c": 0.131,
    "h": 291.3
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#301566
secondary
#7C9D3A
accent
#E93FB0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301566

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

Preview Lab → · Contrast checker → · Palette generator →

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