#301AA1#301AA1

#301AA1 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.2% C 0.197 H 277.5°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#301AA1
RGBrgb(48, 26, 161)
HSLhsl(250, 72%, 37%)
HSVhsv(250, 84%, 63%)
CMYKcmyk(70.2%, 83.9%, 0%, 36.9%)
CIE-LABlab(23.47, 49.16, -67.70)
CIE-LCHlch(23.47, 83.67, 305.99°)
OKLaboklab(36.24% 0.0256 -0.1956)
OKLCHoklch(36.24% 0.197 277.5)
XYZxyz(8.0193, 3.9397, 34.0491)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301AA1 #8BA11A
analogous
#1A48A1 #301AA1 #741AA1
triadic
#301AA1 #A1301A #1AA130
tetradic
#301AA1 #A11A48 #8BA11A #1AA174
square
#301AA1 #A11A48 #8BA11A #1AA174
split-complementary
#301AA1 #A1741A #48A11A
monochromatic
#110938 #20116C #301AA1 #4023D6 #6A52E3

Accessibility & contrast

On white

11.74
#301AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#301AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301AA1
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301AA1#FFFFFF#000000##FFFFFF
##301AA11.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301aa1;
/* rgb */ color: rgb(48, 26, 161);
/* oklch */ color: oklch(36.2% 0.197 277.5);
Tailwind
colors: {
  custom: {
    50: '#7b5cbe',
    500: '#301aa1',
    950: '#000000',
  },
}
SCSS
$custom: #301aa1;
$custom-light: #7b5cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#301aa1",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 249.778,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36244,
    "c": 0.19725,
    "h": 277.5
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#301AA1
secondary
#B3C651
accent
#EF39D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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