#301780#301780

#301780 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.161 H 283.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#301780
RGBrgb(48, 23, 128)
HSLhsl(254, 70%, 30%)
HSVhsv(254, 82%, 50%)
CMYKcmyk(62.5%, 82%, 0%, 49.8%)
CIE-LABlab(19.22, 40.64, -54.22)
CIE-LCHlch(19.22, 67.76, 306.85°)
OKLaboklab(32.2% 0.0378 -0.1563)
OKLCHoklch(32.2% 0.161 283.6)
XYZxyz(5.4204, 2.7993, 20.6726)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301780 #678017
analogous
#173280 #301780 #651780
triadic
#301780 #803017 #178030
tetradic
#301780 #801732 #678017 #178065
square
#301780 #801732 #678017 #178065
split-complementary
#301780 #806517 #328017
monochromatic
#0A051A #1D0E4C #301780 #4320B4 #5E36DB

Accessibility & contrast

On white

13.46
#301780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#301780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301780
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301780#FFFFFF#000000##FFFFFF
##3017801.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301780;
/* rgb */ color: rgb(48, 23, 128);
/* oklch */ color: oklch(32.2% 0.161 283.6);
Tailwind
colors: {
  custom: {
    50: '#7458a6',
    500: '#301780',
    950: '#000000',
  },
}
SCSS
$custom: #301780;
$custom-light: #7458a6;
$custom-dark: #000000;
JSON
{
  "hex": "#301780",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 254.286,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32198,
    "c": 0.16084,
    "h": 283.6
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#301780
secondary
#98B43E
accent
#EC3BC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #301780

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

Preview Lab → · Contrast checker → · Palette generator →

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