#301C88#301C88

#301C88 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.166 H 281.2°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#301C88
RGBrgb(48, 28, 136)
HSLhsl(251, 66%, 32%)
HSVhsv(251, 79%, 53%)
CMYKcmyk(64.7%, 79.4%, 0%, 46.7%)
CIE-LABlab(20.97, 40.60, -56.39)
CIE-LCHlch(20.97, 69.49, 305.75°)
OKLaboklab(33.67% 0.0323 -0.1627)
OKLCHoklch(33.67% 0.166 281.2)
XYZxyz(6.0767, 3.2360, 23.5922)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C88 #74881C
analogous
#1C3E88 #301C88 #661C88
triadic
#301C88 #88301C #1C8830
tetradic
#301C88 #881C3E #74881C #1C8866
square
#301C88 #881C3E #74881C #1C8866
split-complementary
#301C88 #88661C #3E881C
monochromatic
#0C0722 #1E1255 #301C88 #4226BB #6146D9

Accessibility & contrast

On white

12.75
#301C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#301C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C88
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C88#FFFFFF#000000##FFFFFF
##301C881.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301c88;
/* rgb */ color: rgb(48, 28, 136);
/* oklch */ color: oklch(33.7% 0.166 281.2);
Tailwind
colors: {
  custom: {
    50: '#755bac',
    500: '#301c88',
    950: '#000000',
  },
}
SCSS
$custom: #301c88;
$custom-light: #755bac;
$custom-dark: #000000;
JSON
{
  "hex": "#301c88",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 251.111,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33674,
    "c": 0.16588,
    "h": 281.2
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#301C88
secondary
#A5BA45
accent
#E93FC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301C88

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

Preview Lab → · Contrast checker → · Palette generator →

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