#301A8A#301A8A

#301A8A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.170 H 281.1°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#301A8A
RGBrgb(48, 26, 138)
HSLhsl(252, 68%, 32%)
HSVhsv(252, 81%, 54%)
CMYKcmyk(65.2%, 81.2%, 0%, 45.9%)
CIE-LABlab(20.83, 42.23, -57.86)
CIE-LCHlch(20.83, 71.63, 306.12°)
OKLaboklab(33.65% 0.0329 -0.167)
OKLCHoklch(33.65% 0.17 281.1)
XYZxyz(6.1743, 3.2017, 24.3324)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A8A #748A1A
analogous
#1A3C8A #301A8A #681A8A
triadic
#301A8A #8A301A #1A8A30
tetradic
#301A8A #8A1A3C #748A1A #1A8A68
square
#301A8A #8A1A3C #748A1A #1A8A68
split-complementary
#301A8A #8A681A #3C8A1A
monochromatic
#0C0723 #1E1057 #301A8A #4224BD #6143DC

Accessibility & contrast

On white

12.80
#301A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#301A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A8A
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A8A#FFFFFF#000000##FFFFFF
##301A8A1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301a8a;
/* rgb */ color: rgb(48, 26, 138);
/* oklch */ color: oklch(33.6% 0.170 281.1);
Tailwind
colors: {
  custom: {
    50: '#765bad',
    500: '#301a8a',
    950: '#000000',
  },
}
SCSS
$custom: #301a8a;
$custom-light: #765bad;
$custom-dark: #000000;
JSON
{
  "hex": "#301a8a",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 251.786,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33647,
    "c": 0.17017,
    "h": 281.1
  },
  "luminance": 0.03202
}

Semantic roles & 50–950 ramp

primary
#301A8A
secondary
#A5BD43
accent
#EB3DC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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