#301C8E#301C8E

#301C8E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.173 H 280.1°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#301C8E
RGBrgb(48, 28, 142)
HSLhsl(251, 67%, 33%)
HSVhsv(251, 80%, 56%)
CMYKcmyk(66.2%, 80.3%, 0%, 44.3%)
CIE-LABlab(21.62, 42.47, -59.06)
CIE-LCHlch(21.62, 72.74, 305.72°)
OKLaboklab(34.33% 0.0305 -0.1705)
OKLCHoklch(34.33% 0.173 280.1)
XYZxyz(6.5151, 3.4114, 25.9011)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C8E #7A8E1C
analogous
#1C418E #301C8E #691C8E
triadic
#301C8E #8E301C #1C8E30
tetradic
#301C8E #8E1C41 #7A8E1C #1C8E69
square
#301C8E #8E1C41 #7A8E1C #1C8E69
split-complementary
#301C8E #8E691C #418E1C
monochromatic
#0D0828 #1F125B #301C8E #4126C1 #6349DB

Accessibility & contrast

On white

12.48
#301C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301C8E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C8E#FFFFFF#000000##FFFFFF
##301C8E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301c8e;
/* rgb */ color: rgb(48, 28, 142);
/* oklch */ color: oklch(34.3% 0.173 280.1);
Tailwind
colors: {
  custom: {
    50: '#765cb0',
    500: '#301c8e',
    950: '#000000',
  },
}
SCSS
$custom: #301c8e;
$custom-light: #765cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#301c8e",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 250.526,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34326,
    "c": 0.17319,
    "h": 280.1
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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