#301CAD#301CAD

#301CAD is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.8% C 0.210 H 275.8°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#301CAD
RGBrgb(48, 28, 173)
HSLhsl(248, 72%, 39%)
HSVhsv(248, 84%, 68%)
CMYKcmyk(72.3%, 83.8%, 0%, 32.2%)
CIE-LABlab(25.18, 51.84, -72.12)
CIE-LCHlch(25.18, 88.82, 305.71°)
OKLaboklab(37.83% 0.0212 -0.2084)
OKLCHoklch(37.83% 0.21 275.8)
XYZxyz(9.1745, 4.4751, 39.9073)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301CAD #99AD1C
analogous
#1C51AD #301CAD #791CAD
triadic
#301CAD #AD301C #1CAD30
tetradic
#301CAD #AD1C51 #99AD1C #1CAD79
square
#301CAD #AD1C51 #99AD1C #1CAD79
split-complementary
#301CAD #AD791C #51AD1C
monochromatic
#130B44 #211378 #301CAD #422ADC #715EE5

Accessibility & contrast

On white

11.08
#301CAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#301CAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301CAD
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301CAD#FFFFFF#000000##FFFFFF
##301CAD1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B1
Deuteranopia (green-blind)
#0035AB
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #301cad;
/* rgb */ color: rgb(48, 28, 173);
/* oklch */ color: oklch(37.8% 0.210 275.8);
Tailwind
colors: {
  custom: {
    50: '#7d5ec7',
    500: '#301cad',
    950: '#000000',
  },
}
SCSS
$custom: #301cad;
$custom-light: #7d5ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#301cad",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 173
  },
  "hsl": {
    "h": 248.276,
    "s": 72.139,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37833,
    "c": 0.20952,
    "h": 275.8
  },
  "luminance": 0.04476
}

Semantic roles & 50–950 ramp

primary
#301CAD
secondary
#BAC95C
accent
#EF39D6
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #301CAD

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

Preview Lab → · Contrast checker → · Palette generator →

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