#301565#301565

#301565 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.130 H 291.6°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#301565
RGBrgb(48, 21, 101)
HSLhsl(260, 66%, 24%)
HSVhsv(260, 79%, 40%)
CMYKcmyk(52.5%, 79.2%, 0%, 60.4%)
CIE-LABlab(16.02, 33.46, -42.02)
CIE-LCHlch(16.02, 53.72, 308.53°)
OKLaboklab(29.11% 0.0478 -0.1206)
OKLCHoklch(29.11% 0.13 291.6)
XYZxyz(3.8354, 2.1041, 12.5135)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301565 #4A6515
analogous
#152265 #301565 #581565
triadic
#301565 #653015 #156530
tetradic
#301565 #651522 #4A6515 #156558
square
#301565 #651522 #4A6515 #156558
split-complementary
#301565 #655815 #226515
monochromatic
#0C0519 #180A32 #301565 #482098 #602ACA

Accessibility & contrast

On white

14.78
#301565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301565
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301565#FFFFFF#000000##FFFFFF
##3015651.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301565;
/* rgb */ color: rgb(48, 21, 101);
/* oklch */ color: oklch(29.1% 0.130 291.6);
Tailwind
colors: {
  custom: {
    50: '#6f5592',
    500: '#301565',
    950: '#000000',
  },
}
SCSS
$custom: #301565;
$custom-light: #6f5592;
$custom-dark: #000000;
JSON
{
  "hex": "#301565",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 260.25,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29108,
    "c": 0.12976,
    "h": 291.6
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#301565
secondary
#7B9C3A
accent
#E93FAF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301565

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

Preview Lab → · Contrast checker → · Palette generator →

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