#301D87#301D87

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

Color values

HEX#301D87
RGBrgb(48, 29, 135)
HSLhsl(251, 65%, 32%)
HSVhsv(251, 79%, 53%)
CMYKcmyk(64.4%, 78.5%, 0%, 47.1%)
CIE-LABlab(21.04, 39.76, -55.64)
CIE-LCHlch(21.04, 68.39, 305.55°)
OKLaboklab(33.69% 0.0319 -0.1605)
OKLCHoklch(33.69% 0.164 281.2)
XYZxyz(6.0301, 3.2559, 23.2277)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D87 #74871D
analogous
#1D3F87 #301D87 #651D87
triadic
#301D87 #87301D #1D8730
tetradic
#301D87 #871D3F #74871D #1D8765
square
#301D87 #871D3F #74871D #1D8765
split-complementary
#301D87 #87651D #3F871D
monochromatic
#0C0722 #1E1255 #301D87 #4228B9 #6147D7

Accessibility & contrast

On white

12.72
#301D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301D87
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D87#FFFFFF#000000##FFFFFF
##301D871.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301d87;
/* rgb */ color: rgb(48, 29, 135);
/* oklch */ color: oklch(33.7% 0.164 281.2);
Tailwind
colors: {
  custom: {
    50: '#755cab',
    500: '#301d87',
    950: '#000000',
  },
}
SCSS
$custom: #301d87;
$custom-light: #755cab;
$custom-dark: #000000;
JSON
{
  "hex": "#301d87",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 250.755,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33694,
    "c": 0.16367,
    "h": 281.2
  },
  "luminance": 0.03256
}

Semantic roles & 50–950 ramp

primary
#301D87
secondary
#A5B946
accent
#E840CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301D87

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

Preview Lab → · Contrast checker → · Palette generator →

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