#301EA7#301EA7

#301EA7 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.4% C 0.201 H 276.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#301EA7
RGBrgb(48, 30, 167)
HSLhsl(248, 70%, 39%)
HSVhsv(248, 82%, 65%)
CMYKcmyk(71.3%, 82%, 0%, 34.5%)
CIE-LABlab(24.78, 49.16, -69.17)
CIE-LCHlch(24.78, 84.86, 305.40°)
OKLaboklab(37.35% 0.0222 -0.1999)
OKLCHoklch(37.35% 0.201 276.3)
XYZxyz(8.6560, 4.3461, 36.9344)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301EA7 #95A71E
analogous
#1E50A7 #301EA7 #741EA7
triadic
#301EA7 #A7301E #1EA730
tetradic
#301EA7 #A71E50 #95A71E #1EA774
square
#301EA7 #A71E50 #95A71E #1EA774
split-complementary
#301EA7 #A7741E #50A71E
monochromatic
#120B3F #211573 #301EA7 #412AD9 #6F5DE2

Accessibility & contrast

On white

11.23
#301EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#301EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301EA7
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301EA7#FFFFFF#000000##FFFFFF
##301EA71.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #301ea7;
/* rgb */ color: rgb(48, 30, 167);
/* oklch */ color: oklch(37.4% 0.201 276.3);
Tailwind
colors: {
  custom: {
    50: '#7c5fc3',
    500: '#301ea7',
    950: '#000000',
  },
}
SCSS
$custom: #301ea7;
$custom-light: #7c5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#301ea7",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 247.883,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37353,
    "c": 0.20113,
    "h": 276.3
  },
  "luminance": 0.04347
}

Semantic roles & 50–950 ramp

primary
#301EA7
secondary
#B8C65B
accent
#EC3BD5
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #301EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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