#301A88#301A88

#301A88 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.168 H 281.5°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#301A88
RGBrgb(48, 26, 136)
HSLhsl(252, 68%, 32%)
HSVhsv(252, 81%, 53%)
CMYKcmyk(64.7%, 80.9%, 0%, 46.7%)
CIE-LABlab(20.61, 41.61, -56.97)
CIE-LCHlch(20.61, 70.55, 306.14°)
OKLaboklab(33.43% 0.0335 -0.1644)
OKLCHoklch(33.43% 0.168 281.5)
XYZxyz(6.0309, 3.1443, 23.5769)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A88 #72881A
analogous
#1A3B88 #301A88 #671A88
triadic
#301A88 #88301A #1A8830
tetradic
#301A88 #881A3B #72881A #1A8867
square
#301A88 #881A3B #72881A #1A8867
split-complementary
#301A88 #88671A #3B881A
monochromatic
#0C0621 #1E1055 #301A88 #4224BB #6042DB

Accessibility & contrast

On white

12.89
#301A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301A88
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A88#FFFFFF#000000##FFFFFF
##301A881.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301a88;
/* rgb */ color: rgb(48, 26, 136);
/* oklch */ color: oklch(33.4% 0.168 281.5);
Tailwind
colors: {
  custom: {
    50: '#755aac',
    500: '#301a88',
    950: '#000000',
  },
}
SCSS
$custom: #301a88;
$custom-light: #755aac;
$custom-dark: #000000;
JSON
{
  "hex": "#301a88",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 252,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33428,
    "c": 0.16776,
    "h": 281.5
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301A88

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

Preview Lab → · Contrast checker → · Palette generator →

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