#301C87#301C87

#301C87 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.165 H 281.4°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#301C87
RGBrgb(48, 28, 135)
HSLhsl(251, 66%, 32%)
HSVhsv(251, 79%, 53%)
CMYKcmyk(64.4%, 79.3%, 0%, 47.1%)
CIE-LABlab(20.86, 40.29, -55.94)
CIE-LCHlch(20.86, 68.94, 305.76°)
OKLaboklab(33.57% 0.0325 -0.1614)
OKLCHoklch(33.57% 0.165 281.4)
XYZxyz(6.0060, 3.2077, 23.2196)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C87 #73871C
analogous
#1C3E87 #301C87 #661C87
triadic
#301C87 #87301C #1C8730
tetradic
#301C87 #871C3E #73871C #1C8766
square
#301C87 #871C3E #73871C #1C8766
split-complementary
#301C87 #87661C #3E871C
monochromatic
#0C0722 #1E1154 #301C87 #4227BA #6145D8

Accessibility & contrast

On white

12.79
#301C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#301C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C87
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C87#FFFFFF#000000##FFFFFF
##301C871.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301c87;
/* rgb */ color: rgb(48, 28, 135);
/* oklch */ color: oklch(33.6% 0.165 281.4);
Tailwind
colors: {
  custom: {
    50: '#755bab',
    500: '#301c87',
    950: '#000000',
  },
}
SCSS
$custom: #301c87;
$custom-light: #755bab;
$custom-dark: #000000;
JSON
{
  "hex": "#301c87",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 251.215,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33566,
    "c": 0.16465,
    "h": 281.4
  },
  "luminance": 0.03208
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301C87

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

Preview Lab → · Contrast checker → · Palette generator →

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