#301A81#301A81

#301A81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.159 H 282.9°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#301A81
RGBrgb(48, 26, 129)
HSLhsl(253, 66%, 30%)
HSVhsv(253, 80%, 51%)
CMYKcmyk(62.8%, 79.8%, 0%, 49.4%)
CIE-LABlab(19.85, 39.45, -53.82)
CIE-LCHlch(19.85, 66.73, 306.24°)
OKLaboklab(32.67% 0.0356 -0.1552)
OKLCHoklch(32.67% 0.159 282.9)
XYZxyz(5.5495, 2.9518, 21.0419)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A81 #6B811A
analogous
#1A3781 #301A81 #641A81
triadic
#301A81 #81301A #1A8130
tetradic
#301A81 #811A37 #6B811A #1A8164
square
#301A81 #811A37 #6B811A #1A8164
split-complementary
#301A81 #81641A #37811A
monochromatic
#0A051B #1D104E #301A81 #4324B4 #5E3DD8

Accessibility & contrast

On white

13.20
#301A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#301A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A81
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A81#FFFFFF#000000##FFFFFF
##301A811.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301a81;
/* rgb */ color: rgb(48, 26, 129);
/* oklch */ color: oklch(32.7% 0.159 282.9);
Tailwind
colors: {
  custom: {
    50: '#745aa7',
    500: '#301a81',
    950: '#000000',
  },
}
SCSS
$custom: #301a81;
$custom-light: #745aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#301a81",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 252.816,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32668,
    "c": 0.15922,
    "h": 282.9
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#301A81
secondary
#9CB542
accent
#E93EC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301A81

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

Preview Lab → · Contrast checker → · Palette generator →

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