#301060#301060

#301060 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.129 H 294.6°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#301060
RGBrgb(48, 16, 96)
HSLhsl(264, 71%, 22%)
HSVhsv(264, 83%, 38%)
CMYKcmyk(50%, 83.3%, 0%, 62.4%)
CIE-LABlab(14.64, 34.50, -40.97)
CIE-LCHlch(14.64, 53.56, 310.10°)
OKLaboklab(27.99% 0.0538 -0.1175)
OKLCHoklch(27.99% 0.129 294.6)
XYZxyz(3.5150, 1.8434, 11.2347)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301060 #406010
analogous
#101860 #301060 #581060
triadic
#301060 #603010 #106030
tetradic
#301060 #601018 #406010 #106058
square
#301060 #601018 #406010 #106058
split-complementary
#301060 #605810 #186010
monochromatic
#0D041A #16072C #301060 #4A1994 #6421C9

Accessibility & contrast

On white

15.34
#301060 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#301060 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301060
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301060#FFFFFF#000000##FFFFFF
##3010601.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#222638
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301060;
/* rgb */ color: rgb(48, 16, 96);
/* oklch */ color: oklch(28.0% 0.129 294.6);
Tailwind
colors: {
  custom: {
    50: '#6e538e',
    500: '#301060',
    950: '#000000',
  },
}
SCSS
$custom: #301060;
$custom-light: #6e538e;
$custom-dark: #000000;
JSON
{
  "hex": "#301060",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 96
  },
  "hsl": {
    "h": 264,
    "s": 71.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27986,
    "c": 0.12923,
    "h": 294.6
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#301060
secondary
#709933
accent
#EE3AA6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #301060

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

Preview Lab → · Contrast checker → · Palette generator →

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