#301A87#301A87

#301A87 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.167 H 281.7°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#301A87
RGBrgb(48, 26, 135)
HSLhsl(252, 68%, 32%)
HSVhsv(252, 81%, 53%)
CMYKcmyk(64.4%, 80.7%, 0%, 47.1%)
CIE-LABlab(20.50, 41.30, -56.53)
CIE-LCHlch(20.50, 70.01, 306.16°)
OKLaboklab(33.32% 0.0338 -0.1631)
OKLCHoklch(33.32% 0.167 281.7)
XYZxyz(5.9601, 3.1160, 23.2043)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A87 #71871A
analogous
#1A3B87 #301A87 #671A87
triadic
#301A87 #87301A #1A8730
tetradic
#301A87 #871A3B #71871A #1A8767
square
#301A87 #871A3B #71871A #1A8767
split-complementary
#301A87 #87671A #3B871A
monochromatic
#0C0620 #1E1054 #301A87 #4224BA #6041DA

Accessibility & contrast

On white

12.94
#301A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#301A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A87
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A87#FFFFFF#000000##FFFFFF
##301A871.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301a87;
/* rgb */ color: rgb(48, 26, 135);
/* oklch */ color: oklch(33.3% 0.167 281.7);
Tailwind
colors: {
  custom: {
    50: '#755aab',
    500: '#301a87',
    950: '#000000',
  },
}
SCSS
$custom: #301a87;
$custom-light: #755aab;
$custom-dark: #000000;
JSON
{
  "hex": "#301a87",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 252.11,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33318,
    "c": 0.16655,
    "h": 281.7
  },
  "luminance": 0.03116
}

Semantic roles & 50–950 ramp

primary
#301A87
secondary
#A2BA42
accent
#EB3DC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301A87

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

Preview Lab → · Contrast checker → · Palette generator →

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