#301C8F#301C8F

#301C8F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.174 H 280.0°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#301C8F
RGBrgb(48, 28, 143)
HSLhsl(250, 67%, 34%)
HSVhsv(250, 80%, 56%)
CMYKcmyk(66.4%, 80.4%, 0%, 43.9%)
CIE-LABlab(21.73, 42.78, -59.50)
CIE-LCHlch(21.73, 73.28, 305.71°)
OKLaboklab(34.44% 0.0302 -0.1718)
OKLCHoklch(34.44% 0.174 280)
XYZxyz(6.5905, 3.4415, 26.2983)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C8F #7B8F1C
analogous
#1C418F #301C8F #691C8F
triadic
#301C8F #8F301C #1C8F30
tetradic
#301C8F #8F1C41 #7B8F1C #1C8F69
square
#301C8F #8F1C41 #7B8F1C #1C8F69
split-complementary
#301C8F #8F691C #418F1C
monochromatic
#0E0829 #1F125C #301C8F #4126C2 #634ADC

Accessibility & contrast

On white

12.44
#301C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#301C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C8F
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C8F#FFFFFF#000000##FFFFFF
##301C8F1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301c8f;
/* rgb */ color: rgb(48, 28, 143);
/* oklch */ color: oklch(34.4% 0.174 280.0);
Tailwind
colors: {
  custom: {
    50: '#765cb1',
    500: '#301c8f',
    950: '#000000',
  },
}
SCSS
$custom: #301c8f;
$custom-light: #765cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#301c8f",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 250.435,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34436,
    "c": 0.1744,
    "h": 280
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#301C8F
secondary
#A9BE49
accent
#EA3ECC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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