#301C80#301C80

#301C80 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.156 H 282.8°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#301C80
RGBrgb(48, 28, 128)
HSLhsl(252, 64%, 31%)
HSVhsv(252, 78%, 50%)
CMYKcmyk(62.5%, 78.1%, 0%, 49.8%)
CIE-LABlab(20.11, 38.08, -52.76)
CIE-LCHlch(20.11, 65.06, 305.82°)
OKLaboklab(32.82% 0.0345 -0.1521)
OKLCHoklch(32.82% 0.156 282.8)
XYZxyz(5.5292, 3.0170, 20.7089)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C80 #6C801C
analogous
#1C3A80 #301C80 #621C80
triadic
#301C80 #80301C #1C8030
tetradic
#301C80 #801C3A #6C801C #1C8062
square
#301C80 #801C3A #6C801C #1C8062
split-complementary
#301C80 #80621C #3A801C
monochromatic
#0A061C #1D114E #301C80 #4327B2 #5F41D5

Accessibility & contrast

On white

13.10
#301C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#301C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C80
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C80#FFFFFF#000000##FFFFFF
##301C801.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301c80;
/* rgb */ color: rgb(48, 28, 128);
/* oklch */ color: oklch(32.8% 0.156 282.8);
Tailwind
colors: {
  custom: {
    50: '#735ba6',
    500: '#301c80',
    950: '#000000',
  },
}
SCSS
$custom: #301c80;
$custom-light: #735ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#301c80",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 252,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3282,
    "c": 0.15596,
    "h": 282.8
  },
  "luminance": 0.03017
}

Semantic roles & 50–950 ramp

primary
#301C80
secondary
#9DB344
accent
#E741C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301C80

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

Preview Lab → · Contrast checker → · Palette generator →

#301C80 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva