#301A9D#301A9D

#301A9D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.193 H 278.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#301A9D
RGBrgb(48, 26, 157)
HSLhsl(250, 72%, 36%)
HSVhsv(250, 83%, 62%)
CMYKcmyk(69.4%, 83.4%, 0%, 38.4%)
CIE-LABlab(23.00, 47.98, -66.03)
CIE-LCHlch(23.00, 81.62, 306.00°)
OKLaboklab(35.78% 0.0269 -0.1907)
OKLCHoklch(35.78% 0.193 278)
XYZxyz(7.6722, 3.8008, 32.2211)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A9D #879D1A
analogous
#1A459D #301A9D #711A9D
triadic
#301A9D #9D301A #1A9D30
tetradic
#301A9D #9D1A45 #879D1A #1A9D71
square
#301A9D #9D1A45 #879D1A #1A9D71
split-complementary
#301A9D #9D711A #459D1A
monochromatic
#100934 #201168 #301A9D #4023D2 #684FE2

Accessibility & contrast

On white

11.93
#301A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#301A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A9D
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A9D#FFFFFF#000000##FFFFFF
##301A9D1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301a9d;
/* rgb */ color: rgb(48, 26, 157);
/* oklch */ color: oklch(35.8% 0.193 278.0);
Tailwind
colors: {
  custom: {
    50: '#7a5cbb',
    500: '#301a9d',
    950: '#000000',
  },
}
SCSS
$custom: #301a9d;
$custom-light: #7a5cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#301a9d",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 250.076,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35784,
    "c": 0.19262,
    "h": 278
  },
  "luminance": 0.03801
}

Semantic roles & 50–950 ramp

primary
#301A9D
secondary
#B1C44E
accent
#EE39D0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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