#301AB4#301AB4

#301AB4 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.5% C 0.219 H 275.2°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#301AB4
RGBrgb(48, 26, 180)
HSLhsl(249, 75%, 40%)
HSVhsv(249, 86%, 71%)
CMYKcmyk(73.3%, 85.6%, 0%, 29.4%)
CIE-LABlab(25.75, 54.70, -75.38)
CIE-LCHlch(25.75, 93.14, 305.97°)
OKLaboklab(38.46% 0.0197 -0.2179)
OKLCHoklch(38.46% 0.219 275.2)
XYZxyz(9.8238, 4.6615, 43.5532)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301AB4 #9EB41A
analogous
#1A51B4 #301AB4 #7D1AB4
triadic
#301AB4 #B4301A #1AB430
tetradic
#301AB4 #B41A51 #9EB41A #1AB47D
square
#301AB4 #B41A51 #9EB41A #1AB47D
split-complementary
#301AB4 #B47D1A #51B41A
monochromatic
#130B49 #22127F #301AB4 #452BE0 #7460E8

Accessibility & contrast

On white

10.87
#301AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#301AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301AB4
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301AB4#FFFFFF#000000##FFFFFF
##301AB41.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #301ab4;
/* rgb */ color: rgb(48, 26, 180);
/* oklch */ color: oklch(38.5% 0.219 275.2);
Tailwind
colors: {
  custom: {
    50: '#7f5ecc',
    500: '#301ab4',
    950: '#000000',
  },
}
SCSS
$custom: #301ab4;
$custom-light: #7f5ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#301ab4",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 248.571,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38462,
    "c": 0.21875,
    "h": 275.2
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#301AB4
secondary
#BDCC5D
accent
#F136D7
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #301AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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