#301CAB#301CAB

#301CAB is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.6% C 0.207 H 276.0°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#301CAB
RGBrgb(48, 28, 171)
HSLhsl(248, 72%, 39%)
HSVhsv(248, 84%, 67%)
CMYKcmyk(71.9%, 83.6%, 0%, 32.9%)
CIE-LABlab(24.95, 51.25, -71.31)
CIE-LCHlch(24.95, 87.82, 305.71°)
OKLaboklab(37.6% 0.0218 -0.2061)
OKLCHoklch(37.6% 0.207 276)
XYZxyz(8.9825, 4.3983, 38.8958)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301CAB #97AB1C
analogous
#1C4FAB #301CAB #781CAB
triadic
#301CAB #AB301C #1CAB30
tetradic
#301CAB #AB1C4F #97AB1C #1CAB78
square
#301CAB #AB1C4F #97AB1C #1CAB78
split-complementary
#301CAB #AB781C #4FAB1C
monochromatic
#120B42 #211376 #301CAB #4128DC #705DE4

Accessibility & contrast

On white

11.17
#301CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#301CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301CAB
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301CAB#FFFFFF#000000##FFFFFF
##301CAB1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AF
Deuteranopia (green-blind)
#0035A9
Tritanopia (blue-blind)
#004A66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #301cab;
/* rgb */ color: rgb(48, 28, 171);
/* oklch */ color: oklch(37.6% 0.207 276.0);
Tailwind
colors: {
  custom: {
    50: '#7d5ec5',
    500: '#301cab',
    950: '#000000',
  },
}
SCSS
$custom: #301cab;
$custom-light: #7d5ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#301cab",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 248.392,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37601,
    "c": 0.20725,
    "h": 276
  },
  "luminance": 0.04399
}

Semantic roles & 50–950 ramp

primary
#301CAB
secondary
#B9C95A
accent
#EF39D5
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #301CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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