#301AA4#301AA4

#301AA4 is a dark, highly saturated blue. Relative luminance 0.040; OKLCH L 36.6% C 0.201 H 277.1°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#301AA4
RGBrgb(48, 26, 164)
HSLhsl(250, 73%, 37%)
HSVhsv(250, 84%, 64%)
CMYKcmyk(70.7%, 84.1%, 0%, 35.7%)
CIE-LABlab(23.83, 50.05, -68.94)
CIE-LCHlch(23.83, 85.19, 305.98°)
OKLaboklab(36.59% 0.0246 -0.1992)
OKLCHoklch(36.59% 0.201 277.1)
XYZxyz(8.2870, 4.0467, 35.4591)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301AA4 #8EA41A
analogous
#1A49A4 #301AA4 #751AA4
triadic
#301AA4 #A4301A #1AA430
tetradic
#301AA4 #A41A49 #8EA41A #1AA475
square
#301AA4 #A41A49 #8EA41A #1AA475
split-complementary
#301AA4 #A4751A #49A41A
monochromatic
#11093A #21126F #301AA4 #3F22D9 #6B54E4

Accessibility & contrast

On white

11.60
#301AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#301AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301AA4
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301AA4#FFFFFF#000000##FFFFFF
##301AA41.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA8
Deuteranopia (green-blind)
#0033A2
Tritanopia (blue-blind)
#004661
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #301aa4;
/* rgb */ color: rgb(48, 26, 164);
/* oklch */ color: oklch(36.6% 0.201 277.1);
Tailwind
colors: {
  custom: {
    50: '#7b5cc0',
    500: '#301aa4',
    950: '#000000',
  },
}
SCSS
$custom: #301aa4;
$custom-light: #7b5cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#301aa4",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 164
  },
  "hsl": {
    "h": 249.565,
    "s": 72.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3659,
    "c": 0.20069,
    "h": 277.1
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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