#301C66#301C66

#301C66 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.122 H 289.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#301C66
RGBrgb(48, 28, 102)
HSLhsl(256, 57%, 25%)
HSVhsv(256, 73%, 40%)
CMYKcmyk(52.9%, 72.5%, 0%, 60%)
CIE-LABlab(17.54, 29.79, -40.20)
CIE-LCHlch(17.54, 50.03, 306.54°)
OKLaboklab(30.21% 0.0406 -0.1153)
OKLCHoklch(30.21% 0.122 289.4)
XYZxyz(4.0318, 2.4180, 12.8221)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C66 #52661C
analogous
#1C2D66 #301C66 #551C66
triadic
#301C66 #66301C #1C6630
tetradic
#301C66 #661C2D #52661C #1C6655
square
#301C66 #661C2D #52661C #1C6655
split-complementary
#301C66 #66551C #2D661C
monochromatic
#0B0718 #190F36 #301C66 #472996 #5D36C6

Accessibility & contrast

On white

14.15
#301C66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#301C66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C66
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C66#FFFFFF#000000##FFFFFF
##301C661.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#1D2F3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301c66;
/* rgb */ color: rgb(48, 28, 102);
/* oklch */ color: oklch(30.2% 0.122 289.4);
Tailwind
colors: {
  custom: {
    50: '#6e5a92',
    500: '#301c66',
    950: '#000000',
  },
}
SCSS
$custom: #301c66;
$custom-light: #6e5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#301c66",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 102
  },
  "hsl": {
    "h": 256.216,
    "s": 56.923,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30215,
    "c": 0.12226,
    "h": 289.4
  },
  "luminance": 0.02418
}

Semantic roles & 50–950 ramp

primary
#301C66
secondary
#839B43
accent
#E048B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #301C66

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

Preview Lab → · Contrast checker → · Palette generator →

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