#301CB3#301CB3

#301CB3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.5% C 0.216 H 275.1°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#301CB3
RGBrgb(48, 28, 179)
HSLhsl(248, 73%, 41%)
HSVhsv(248, 84%, 70%)
CMYKcmyk(73.2%, 84.4%, 0%, 29.8%)
CIE-LABlab(25.90, 53.60, -74.53)
CIE-LCHlch(25.90, 91.81, 305.72°)
OKLaboklab(38.53% 0.0194 -0.2154)
OKLCHoklch(38.53% 0.216 275.1)
XYZxyz(9.7682, 4.7126, 43.0339)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301CB3 #9FB31C
analogous
#1C53B3 #301CB3 #7B1CB3
triadic
#301CB3 #B3301C #1CB330
tetradic
#301CB3 #B31C53 #9FB31C #1CB37B
square
#301CB3 #B31C53 #9FB31C #1CB37B
split-complementary
#301CB3 #B37B1C #53B31C
monochromatic
#140B49 #22147E #301CB3 #452EDE #7463E7

Accessibility & contrast

On white

10.81
#301CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#301CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301CB3
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301CB3#FFFFFF#000000##FFFFFF
##301CB31.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #301cb3;
/* rgb */ color: rgb(48, 28, 179);
/* oklch */ color: oklch(38.5% 0.216 275.1);
Tailwind
colors: {
  custom: {
    50: '#7e5fcb',
    500: '#301cb3',
    950: '#000000',
  },
}
SCSS
$custom: #301cb3;
$custom-light: #7e5fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#301cb3",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 247.947,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38531,
    "c": 0.21631,
    "h": 275.1
  },
  "luminance": 0.04714
}

Semantic roles & 50–950 ramp

primary
#301CB3
secondary
#BDCB5F
accent
#F038D7
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #301CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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