#301EA5#301EA5

#301EA5 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.199 H 276.6°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#301EA5
RGBrgb(48, 30, 165)
HSLhsl(248, 69%, 38%)
HSVhsv(248, 82%, 65%)
CMYKcmyk(70.9%, 81.8%, 0%, 35.3%)
CIE-LABlab(24.55, 48.55, -68.34)
CIE-LCHlch(24.55, 83.83, 305.39°)
OKLaboklab(37.13% 0.0228 -0.1975)
OKLCHoklch(37.13% 0.199 276.6)
XYZxyz(8.4725, 4.2728, 35.9682)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301EA5 #93A51E
analogous
#1E4FA5 #301EA5 #731EA5
triadic
#301EA5 #A5301E #1EA530
tetradic
#301EA5 #A51E4F #93A51E #1EA573
square
#301EA5 #A51E4F #93A51E #1EA573
split-complementary
#301EA5 #A5731E #4FA51E
monochromatic
#120B3D #211571 #301EA5 #4028D8 #6E5CE1

Accessibility & contrast

On white

11.32
#301EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#301EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301EA5
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301EA5#FFFFFF#000000##FFFFFF
##301EA51.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0034A3
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #301ea5;
/* rgb */ color: rgb(48, 30, 165);
/* oklch */ color: oklch(37.1% 0.199 276.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ec1',
    500: '#301ea5',
    950: '#000000',
  },
}
SCSS
$custom: #301ea5;
$custom-light: #7b5ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#301ea5",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 165
  },
  "hsl": {
    "h": 248,
    "s": 69.231,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37126,
    "c": 0.19881,
    "h": 276.6
  },
  "luminance": 0.04274
}

Semantic roles & 50–950 ramp

primary
#301EA5
secondary
#B7C559
accent
#EC3CD5
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #301EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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