#301EA1#301EA1

#301EA1 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.7% C 0.194 H 277.1°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#301EA1
RGBrgb(48, 30, 161)
HSLhsl(248, 69%, 37%)
HSVhsv(248, 81%, 63%)
CMYKcmyk(70.2%, 81.4%, 0%, 36.9%)
CIE-LABlab(24.09, 47.34, -66.66)
CIE-LCHlch(24.09, 81.76, 305.38°)
OKLaboklab(36.67% 0.024 -0.1926)
OKLCHoklch(36.67% 0.194 277.1)
XYZxyz(8.1141, 4.1294, 34.0807)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301EA1 #8FA11E
analogous
#1E4EA1 #301EA1 #711EA1
triadic
#301EA1 #A1301E #1EA130
tetradic
#301EA1 #A11E4E #8FA11E #1EA171
square
#301EA1 #A11E4E #8FA11E #1EA171
split-complementary
#301EA1 #A1711E #4EA11E
monochromatic
#110B3A #21146D #301EA1 #3F28D5 #6C59E0

Accessibility & contrast

On white

11.50
#301EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#301EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301EA1
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301EA1#FFFFFF#000000##FFFFFF
##301EA11.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #301ea1;
/* rgb */ color: rgb(48, 30, 161);
/* oklch */ color: oklch(36.7% 0.194 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a5ebe',
    500: '#301ea1',
    950: '#000000',
  },
}
SCSS
$custom: #301ea1;
$custom-light: #7a5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#301ea1",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 248.244,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36674,
    "c": 0.19412,
    "h": 277.1
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#301EA1
secondary
#B5C457
accent
#EB3CD3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #301EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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