#301EA4#301EA4

#301EA4 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 37.0% C 0.198 H 276.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#301EA4
RGBrgb(48, 30, 164)
HSLhsl(248, 69%, 38%)
HSVhsv(248, 82%, 64%)
CMYKcmyk(70.7%, 81.7%, 0%, 35.7%)
CIE-LABlab(24.44, 48.25, -67.92)
CIE-LCHlch(24.44, 83.31, 305.39°)
OKLaboklab(37.01% 0.0231 -0.1963)
OKLCHoklch(37.01% 0.198 276.7)
XYZxyz(8.3819, 4.2365, 35.4908)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301EA4 #92A41E
analogous
#1E4FA4 #301EA4 #731EA4
triadic
#301EA4 #A4301E #1EA430
tetradic
#301EA4 #A41E4F #92A41E #1EA473
square
#301EA4 #A41E4F #92A41E #1EA473
split-complementary
#301EA4 #A4731E #4FA41E
monochromatic
#120B3D #211570 #301EA4 #3F28D8 #6D5BE1

Accessibility & contrast

On white

11.37
#301EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301EA4
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301EA4#FFFFFF#000000##FFFFFF
##301EA41.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA8
Deuteranopia (green-blind)
#0034A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #301ea4;
/* rgb */ color: rgb(48, 30, 164);
/* oklch */ color: oklch(37.0% 0.198 276.7);
Tailwind
colors: {
  custom: {
    50: '#7b5ec0',
    500: '#301ea4',
    950: '#000000',
  },
}
SCSS
$custom: #301ea4;
$custom-light: #7b5ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#301ea4",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 164
  },
  "hsl": {
    "h": 248.06,
    "s": 69.072,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37013,
    "c": 0.19764,
    "h": 276.7
  },
  "luminance": 0.04237
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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