#301C8D#301C8D

#301C8D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.172 H 280.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#301C8D
RGBrgb(48, 28, 141)
HSLhsl(251, 67%, 33%)
HSVhsv(251, 80%, 55%)
CMYKcmyk(66%, 80.1%, 0%, 44.7%)
CIE-LABlab(21.51, 42.16, -58.62)
CIE-LCHlch(21.51, 72.20, 305.72°)
OKLaboklab(34.22% 0.0308 -0.1692)
OKLCHoklch(34.22% 0.172 280.3)
XYZxyz(6.4404, 3.3815, 25.5074)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C8D #798D1C
analogous
#1C418D #301C8D #681C8D
triadic
#301C8D #8D301C #1C8D30
tetradic
#301C8D #8D1C41 #798D1C #1C8D68
square
#301C8D #8D1C41 #798D1C #1C8D68
split-complementary
#301C8D #8D681C #418D1C
monochromatic
#0D0827 #1F125A #301C8D #4126C0 #6249DB

Accessibility & contrast

On white

12.53
#301C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#301C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C8D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C8D#FFFFFF#000000##FFFFFF
##301C8D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301c8d;
/* rgb */ color: rgb(48, 28, 141);
/* oklch */ color: oklch(34.2% 0.172 280.3);
Tailwind
colors: {
  custom: {
    50: '#765cb0',
    500: '#301c8d',
    950: '#000000',
  },
}
SCSS
$custom: #301c8d;
$custom-light: #765cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#301c8d",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 250.619,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34217,
    "c": 0.17198,
    "h": 280.3
  },
  "luminance": 0.03382
}

Semantic roles & 50–950 ramp

primary
#301C8D
secondary
#A8BD48
accent
#EA3ECB
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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