#301CA7#301CA7

#301CA7 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.203 H 276.5°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#301CA7
RGBrgb(48, 28, 167)
HSLhsl(249, 71%, 38%)
HSVhsv(249, 83%, 65%)
CMYKcmyk(71.3%, 83.2%, 0%, 34.5%)
CIE-LABlab(24.48, 50.07, -69.68)
CIE-LCHlch(24.48, 85.80, 305.70°)
OKLaboklab(37.14% 0.023 -0.2014)
OKLCHoklch(37.14% 0.203 276.5)
XYZxyz(8.6070, 4.2481, 36.9181)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301CA7 #93A71C
analogous
#1C4DA7 #301CA7 #751CA7
triadic
#301CA7 #A7301C #1CA730
tetradic
#301CA7 #A71C4D #93A71C #1CA775
square
#301CA7 #A71C4D #93A71C #1CA775
split-complementary
#301CA7 #A7751C #4DA71C
monochromatic
#120A3E #211373 #301CA7 #4026DB #6E5AE3

Accessibility & contrast

On white

11.35
#301CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301CA7
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301CA7#FFFFFF#000000##FFFFFF
##301CA71.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301ca7;
/* rgb */ color: rgb(48, 28, 167);
/* oklch */ color: oklch(37.1% 0.203 276.5);
Tailwind
colors: {
  custom: {
    50: '#7c5ec3',
    500: '#301ca7',
    950: '#000000',
  },
}
SCSS
$custom: #301ca7;
$custom-light: #7c5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#301ca7",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 248.633,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3714,
    "c": 0.20267,
    "h": 276.5
  },
  "luminance": 0.04249
}

Semantic roles & 50–950 ramp

primary
#301CA7
secondary
#B7C758
accent
#EE3AD4
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #301CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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