#301C77#301C77

#301C77 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.145 H 284.8°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#301C77
RGBrgb(48, 28, 119)
HSLhsl(253, 62%, 29%)
HSVhsv(253, 76%, 47%)
CMYKcmyk(59.7%, 76.5%, 0%, 53.3%)
CIE-LABlab(19.18, 35.23, -48.54)
CIE-LCHlch(19.18, 59.98, 305.97°)
OKLaboklab(31.89% 0.0369 -0.1398)
OKLCHoklch(31.89% 0.145 284.8)
XYZxyz(4.9629, 2.7905, 17.7263)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C77 #63771C
analogous
#1C3677 #301C77 #5E1C77
triadic
#301C77 #77301C #1C7730
tetradic
#301C77 #771C36 #63771C #1C775E
square
#301C77 #771C36 #63771C #1C775E
split-complementary
#301C77 #775E1C #36771C
monochromatic
#0A0619 #1C1045 #301C77 #4428A9 #5D3CD1

Accessibility & contrast

On white

13.48
#301C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#301C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C77
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C77#FFFFFF#000000##FFFFFF
##301C771.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#0B3548
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301c77;
/* rgb */ color: rgb(48, 28, 119);
/* oklch */ color: oklch(31.9% 0.145 284.8);
Tailwind
colors: {
  custom: {
    50: '#715b9f',
    500: '#301c77',
    950: '#000000',
  },
}
SCSS
$custom: #301c77;
$custom-light: #715b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#301c77",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 253.187,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31886,
    "c": 0.14457,
    "h": 284.8
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#301C77
secondary
#94AB44
accent
#E543C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #301C77

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

Preview Lab → · Contrast checker → · Palette generator →

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