#301E87#301E87

#301E87 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.163 H 281.1°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#301E87
RGBrgb(48, 30, 135)
HSLhsl(250, 64%, 32%)
HSVhsv(250, 78%, 53%)
CMYKcmyk(64.4%, 77.8%, 0%, 47.1%)
CIE-LABlab(21.23, 39.22, -55.33)
CIE-LCHlch(21.23, 67.82, 305.33°)
OKLaboklab(33.83% 0.0312 -0.1596)
OKLCHoklch(33.83% 0.163 281.1)
XYZxyz(6.0550, 3.3057, 23.2360)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E87 #75871E
analogous
#1E4087 #301E87 #651E87
triadic
#301E87 #87301E #1E8730
tetradic
#301E87 #871E40 #75871E #1E8765
square
#301E87 #871E40 #75871E #1E8765
split-complementary
#301E87 #87651E #40871E
monochromatic
#0C0823 #1E1355 #301E87 #4229B9 #6149D7

Accessibility & contrast

On white

12.64
#301E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#301E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E87
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E87#FFFFFF#000000##FFFFFF
##301E871.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301e87;
/* rgb */ color: rgb(48, 30, 135);
/* oklch */ color: oklch(33.8% 0.163 281.1);
Tailwind
colors: {
  custom: {
    50: '#755dab',
    500: '#301e87',
    950: '#000000',
  },
}
SCSS
$custom: #301e87;
$custom-light: #755dab;
$custom-dark: #000000;
JSON
{
  "hex": "#301e87",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 250.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33826,
    "c": 0.16267,
    "h": 281.1
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#301E87
secondary
#A5B948
accent
#E741CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301E87

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

Preview Lab → · Contrast checker → · Palette generator →

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