#301CA1#301CA1

#301CA1 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.5% C 0.196 H 277.3°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#301CA1
RGBrgb(48, 28, 161)
HSLhsl(249, 70%, 37%)
HSVhsv(249, 83%, 63%)
CMYKcmyk(70.2%, 82.6%, 0%, 36.9%)
CIE-LABlab(23.77, 48.27, -67.19)
CIE-LCHlch(23.77, 82.74, 305.69°)
OKLaboklab(36.45% 0.0248 -0.1941)
OKLCHoklch(36.45% 0.196 277.3)
XYZxyz(8.0651, 4.0314, 34.0644)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301CA1 #8DA11C
analogous
#1C4AA1 #301CA1 #731CA1
triadic
#301CA1 #A1301C #1CA130
tetradic
#301CA1 #A11C4A #8DA11C #1CA173
square
#301CA1 #A11C4A #8DA11C #1CA173
split-complementary
#301CA1 #A1731C #4AA11C
monochromatic
#110A39 #20136D #301CA1 #4025D5 #6B56E2

Accessibility & contrast

On white

11.63
#301CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#301CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301CA1
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301CA1#FFFFFF#000000##FFFFFF
##301CA11.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00339F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #301ca1;
/* rgb */ color: rgb(48, 28, 161);
/* oklch */ color: oklch(36.5% 0.196 277.3);
Tailwind
colors: {
  custom: {
    50: '#7a5dbe',
    500: '#301ca1',
    950: '#000000',
  },
}
SCSS
$custom: #301ca1;
$custom-light: #7a5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#301ca1",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 249.023,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36453,
    "c": 0.19573,
    "h": 277.3
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#301CA1
secondary
#B4C554
accent
#ED3BD2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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