#301A82#301A82

#301A82 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.160 H 282.7°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#301A82
RGBrgb(48, 26, 130)
HSLhsl(253, 67%, 31%)
HSVhsv(253, 80%, 51%)
CMYKcmyk(63.1%, 80%, 0%, 49%)
CIE-LABlab(19.96, 39.76, -54.28)
CIE-LCHlch(19.96, 67.28, 306.22°)
OKLaboklab(32.78% 0.0353 -0.1565)
OKLCHoklch(32.78% 0.16 282.7)
XYZxyz(5.6163, 2.9785, 21.3937)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A82 #6C821A
analogous
#1A3882 #301A82 #641A82
triadic
#301A82 #82301A #1A8230
tetradic
#301A82 #821A38 #6C821A #1A8264
square
#301A82 #821A38 #6C821A #1A8264
split-complementary
#301A82 #82641A #38821A
monochromatic
#0A061C #1D104F #301A82 #4324B5 #5F3ED8

Accessibility & contrast

On white

13.16
#301A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#301A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A82
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A82#FFFFFF#000000##FFFFFF
##301A821.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301a82;
/* rgb */ color: rgb(48, 26, 130);
/* oklch */ color: oklch(32.8% 0.160 282.7);
Tailwind
colors: {
  custom: {
    50: '#745aa7',
    500: '#301a82',
    950: '#000000',
  },
}
SCSS
$custom: #301a82;
$custom-light: #745aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#301a82",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 252.692,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32776,
    "c": 0.16045,
    "h": 282.7
  },
  "luminance": 0.02979
}

Semantic roles & 50–950 ramp

primary
#301A82
secondary
#9DB642
accent
#EA3EC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301A82

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

Preview Lab → · Contrast checker → · Palette generator →

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