#301D99#301D99

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

Color values

HEX#301D99
RGBrgb(48, 29, 153)
HSLhsl(249, 68%, 36%)
HSVhsv(249, 81%, 60%)
CMYKcmyk(68.6%, 81%, 0%, 40%)
CIE-LABlab(23.02, 45.37, -63.55)
CIE-LCHlch(23.02, 78.08, 305.52°)
OKLaboklab(35.66% 0.0267 -0.1836)
OKLCHoklch(35.66% 0.186 278.3)
XYZxyz(7.4062, 3.8064, 30.4752)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D99 #86991D
analogous
#1D4899 #301D99 #6E1D99
triadic
#301D99 #99301D #1D9930
tetradic
#301D99 #991D48 #86991D #1D996E
square
#301D99 #991D48 #86991D #1D996E
split-complementary
#301D99 #996E1D #48991D
monochromatic
#100932 #201366 #301D99 #4027CC #6852DE

Accessibility & contrast

On white

11.92
#301D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#301D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D99
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D99#FFFFFF#000000##FFFFFF
##301D991.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301d99;
/* rgb */ color: rgb(48, 29, 153);
/* oklch */ color: oklch(35.7% 0.186 278.3);
Tailwind
colors: {
  custom: {
    50: '#795db8',
    500: '#301d99',
    950: '#000000',
  },
}
SCSS
$custom: #301d99;
$custom-light: #795db8;
$custom-dark: #000000;
JSON
{
  "hex": "#301d99",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 249.194,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35663,
    "c": 0.18551,
    "h": 278.3
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#301D99
secondary
#B0C151
accent
#EB3DD0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #301D99

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

Preview Lab → · Contrast checker → · Palette generator →

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