#301980#301980

#301980 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.159 H 283.3°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#301980
RGBrgb(48, 25, 128)
HSLhsl(253, 67%, 30%)
HSVhsv(253, 80%, 50%)
CMYKcmyk(62.5%, 80.5%, 0%, 49.8%)
CIE-LABlab(19.56, 39.65, -53.66)
CIE-LCHlch(19.56, 66.72, 306.46°)
OKLaboklab(32.44% 0.0366 -0.1547)
OKLCHoklch(32.44% 0.159 283.3)
XYZxyz(5.4616, 2.8818, 20.6863)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301980 #698019
analogous
#193680 #301980 #631980
triadic
#301980 #803019 #198030
tetradic
#301980 #801936 #698019 #198063
square
#301980 #801936 #698019 #198063
split-complementary
#301980 #806319 #368019
monochromatic
#0A051A #1D0F4D #301980 #4323B3 #5E3BD9

Accessibility & contrast

On white

13.32
#301980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#301980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301980
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301980#FFFFFF#000000##FFFFFF
##3019801.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301980;
/* rgb */ color: rgb(48, 25, 128);
/* oklch */ color: oklch(32.4% 0.159 283.3);
Tailwind
colors: {
  custom: {
    50: '#7459a6',
    500: '#301980',
    950: '#000000',
  },
}
SCSS
$custom: #301980;
$custom-light: #7459a6;
$custom-dark: #000000;
JSON
{
  "hex": "#301980",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 253.398,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.32437,
    "c": 0.15897,
    "h": 283.3
  },
  "luminance": 0.02882
}

Semantic roles & 50–950 ramp

primary
#301980
secondary
#9AB441
accent
#EA3EC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301980

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

Preview Lab → · Contrast checker → · Palette generator →

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