#301AA5#301AA5

#301AA5 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.7% C 0.202 H 276.9°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#301AA5
RGBrgb(48, 26, 165)
HSLhsl(249, 73%, 37%)
HSVhsv(249, 84%, 65%)
CMYKcmyk(70.9%, 84.2%, 0%, 35.3%)
CIE-LABlab(23.94, 50.34, -69.35)
CIE-LCHlch(23.94, 85.69, 305.98°)
OKLaboklab(36.71% 0.0243 -0.2004)
OKLCHoklch(36.71% 0.202 276.9)
XYZxyz(8.3776, 4.0830, 35.9366)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301AA5 #8FA51A
analogous
#1A4AA5 #301AA5 #751AA5
triadic
#301AA5 #A5301A #1AA530
tetradic
#301AA5 #A51A4A #8FA51A #1AA575
square
#301AA5 #A51A4A #8FA51A #1AA575
split-complementary
#301AA5 #A5751A #4AA51A
monochromatic
#11093B #211270 #301AA5 #3F22DA #6C55E4

Accessibility & contrast

On white

11.56
#301AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#301AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301AA5
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301AA5#FFFFFF#000000##FFFFFF
##301AA51.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA9
Deuteranopia (green-blind)
#0033A3
Tritanopia (blue-blind)
#004762
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #301aa5;
/* rgb */ color: rgb(48, 26, 165);
/* oklch */ color: oklch(36.7% 0.202 276.9);
Tailwind
colors: {
  custom: {
    50: '#7b5cc1',
    500: '#301aa5',
    950: '#000000',
  },
}
SCSS
$custom: #301aa5;
$custom-light: #7b5cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#301aa5",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 165
  },
  "hsl": {
    "h": 249.496,
    "s": 72.775,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36706,
    "c": 0.20183,
    "h": 276.9
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

primary
#301AA5
secondary
#B5C754
accent
#EF38D2
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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