#301B87#301B87

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

Color values

HEX#301B87
RGBrgb(48, 27, 135)
HSLhsl(252, 67%, 32%)
HSVhsv(252, 80%, 53%)
CMYKcmyk(64.4%, 80%, 0%, 47.1%)
CIE-LABlab(20.68, 40.80, -56.24)
CIE-LCHlch(20.68, 69.48, 305.96°)
OKLaboklab(33.44% 0.0332 -0.1623)
OKLCHoklch(33.44% 0.166 281.6)
XYZxyz(5.9827, 3.1611, 23.2119)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B87 #72871B
analogous
#1B3C87 #301B87 #661B87
triadic
#301B87 #87301B #1B8730
tetradic
#301B87 #871B3C #72871B #1B8766
square
#301B87 #871B3C #72871B #1B8766
split-complementary
#301B87 #87661B #3C871B
monochromatic
#0C0721 #1E1154 #301B87 #4225BA #6043D9

Accessibility & contrast

On white

12.86
#301B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#301B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B87
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B87#FFFFFF#000000##FFFFFF
##301B871.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301b87;
/* rgb */ color: rgb(48, 27, 135);
/* oklch */ color: oklch(33.4% 0.166 281.6);
Tailwind
colors: {
  custom: {
    50: '#755bab',
    500: '#301b87',
    950: '#000000',
  },
}
SCSS
$custom: #301b87;
$custom-light: #755bab;
$custom-dark: #000000;
JSON
{
  "hex": "#301b87",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 251.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3344,
    "c": 0.16561,
    "h": 281.6
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#301B87
secondary
#A3BA44
accent
#EA3EC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301B87

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

Preview Lab → · Contrast checker → · Palette generator →

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