#301C99#301C99

#301C99 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.186 H 278.4°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#301C99
RGBrgb(48, 28, 153)
HSLhsl(250, 69%, 35%)
HSVhsv(250, 82%, 60%)
CMYKcmyk(68.6%, 81.7%, 0%, 40%)
CIE-LABlab(22.86, 45.85, -63.82)
CIE-LCHlch(22.86, 78.58, 305.69°)
OKLaboklab(35.55% 0.0272 -0.1844)
OKLCHoklch(35.55% 0.186 278.4)
XYZxyz(7.3821, 3.7582, 30.4672)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C99 #85991C
analogous
#1C4699 #301C99 #6E1C99
triadic
#301C99 #99301C #1C9930
tetradic
#301C99 #991C46 #85991C #1C996E
square
#301C99 #991C46 #85991C #1C996E
split-complementary
#301C99 #996E1C #46991C
monochromatic
#100932 #201365 #301C99 #4025CD #6750DF

Accessibility & contrast

On white

11.99
#301C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#301C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C99
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C99#FFFFFF#000000##FFFFFF
##301C991.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301c99;
/* rgb */ color: rgb(48, 28, 153);
/* oklch */ color: oklch(35.5% 0.186 278.4);
Tailwind
colors: {
  custom: {
    50: '#795db8',
    500: '#301c99',
    950: '#000000',
  },
}
SCSS
$custom: #301c99;
$custom-light: #795db8;
$custom-dark: #000000;
JSON
{
  "hex": "#301c99",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 249.6,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35548,
    "c": 0.18635,
    "h": 278.4
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#301C99
secondary
#AFC24F
accent
#EC3CD0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #301C99

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

Preview Lab → · Contrast checker → · Palette generator →

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