#301A8B#301A8B

#301A8B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.171 H 280.9°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#301A8B
RGBrgb(48, 26, 139)
HSLhsl(252, 68%, 32%)
HSVhsv(252, 81%, 55%)
CMYKcmyk(65.5%, 81.3%, 0%, 45.5%)
CIE-LABlab(20.95, 42.53, -58.30)
CIE-LCHlch(20.95, 72.17, 306.11°)
OKLaboklab(33.76% 0.0325 -0.1683)
OKLCHoklch(33.76% 0.171 280.9)
XYZxyz(6.2470, 3.2308, 24.7155)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A8B #758B1A
analogous
#1A3D8B #301A8B #681A8B
triadic
#301A8B #8B301A #1A8B30
tetradic
#301A8B #8B1A3D #758B1A #1A8B68
square
#301A8B #8B1A3D #758B1A #1A8B68
split-complementary
#301A8B #8B681A #3D8B1A
monochromatic
#0C0724 #1E1057 #301A8B #4224BF #6143DC

Accessibility & contrast

On white

12.76
#301A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#301A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A8B
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A8B#FFFFFF#000000##FFFFFF
##301A8B1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301a8b;
/* rgb */ color: rgb(48, 26, 139);
/* oklch */ color: oklch(33.8% 0.171 280.9);
Tailwind
colors: {
  custom: {
    50: '#765bae',
    500: '#301a8b',
    950: '#000000',
  },
}
SCSS
$custom: #301a8b;
$custom-light: #765bae;
$custom-dark: #000000;
JSON
{
  "hex": "#301a8b",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 251.681,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33758,
    "c": 0.17138,
    "h": 280.9
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#301A8B
secondary
#A5BD44
accent
#EB3CC9
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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