#301C76#301C76

#301C76 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.143 H 285.0°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#301C76
RGBrgb(48, 28, 118)
HSLhsl(253, 62%, 29%)
HSVhsv(253, 76%, 46%)
CMYKcmyk(59.3%, 76.3%, 0%, 53.7%)
CIE-LABlab(19.08, 34.91, -48.07)
CIE-LCHlch(19.08, 59.41, 305.99°)
OKLaboklab(31.78% 0.0371 -0.1384)
OKLCHoklch(31.78% 0.143 285)
XYZxyz(4.9032, 2.7666, 17.4117)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C76 #62761C
analogous
#1C3576 #301C76 #5D1C76
triadic
#301C76 #76301C #1C7630
tetradic
#301C76 #761C35 #62761C #1C765D
square
#301C76 #761C35 #62761C #1C765D
split-complementary
#301C76 #765D1C #35761C
monochromatic
#0A0619 #1C1045 #301C76 #4428A7 #5D3CD1

Accessibility & contrast

On white

13.52
#301C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#301C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C76
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C76#FFFFFF#000000##FFFFFF
##301C761.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#0C3547
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301c76;
/* rgb */ color: rgb(48, 28, 118);
/* oklch */ color: oklch(31.8% 0.143 285.0);
Tailwind
colors: {
  custom: {
    50: '#715a9e',
    500: '#301c76',
    950: '#000000',
  },
}
SCSS
$custom: #301c76;
$custom-light: #715a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#301c76",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 253.333,
    "s": 61.644,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31784,
    "c": 0.14328,
    "h": 285
  },
  "luminance": 0.02767
}

Semantic roles & 50–950 ramp

primary
#301C76
secondary
#93AA44
accent
#E543C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301C76

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

Preview Lab → · Contrast checker → · Palette generator →

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