#301D9A#301D9A

#301D9A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.187 H 278.1°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#301D9A
RGBrgb(48, 29, 154)
HSLhsl(249, 68%, 36%)
HSVhsv(249, 81%, 60%)
CMYKcmyk(68.8%, 81.2%, 0%, 39.6%)
CIE-LABlab(23.13, 45.67, -63.98)
CIE-LCHlch(23.13, 78.61, 305.52°)
OKLaboklab(35.77% 0.0264 -0.1848)
OKLCHoklch(35.77% 0.187 278.1)
XYZxyz(7.4891, 3.8396, 30.9120)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D9A #879A1D
analogous
#1D489A #301D9A #6E1D9A
triadic
#301D9A #9A301D #1D9A30
tetradic
#301D9A #9A1D48 #879A1D #1D9A6E
square
#301D9A #9A1D48 #879A1D #1D9A6E
split-complementary
#301D9A #9A6E1D #489A1D
monochromatic
#100A33 #201366 #301D9A #4027CE #6853DF

Accessibility & contrast

On white

11.88
#301D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#301D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D9A
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D9A#FFFFFF#000000##FFFFFF
##301D9A1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301d9a;
/* rgb */ color: rgb(48, 29, 154);
/* oklch */ color: oklch(35.8% 0.187 278.1);
Tailwind
colors: {
  custom: {
    50: '#795db9',
    500: '#301d9a',
    950: '#000000',
  },
}
SCSS
$custom: #301d9a;
$custom-light: #795db9;
$custom-dark: #000000;
JSON
{
  "hex": "#301d9a",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 249.12,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35774,
    "c": 0.18669,
    "h": 278.1
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#301D9A
secondary
#B1C251
accent
#EB3DD1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #301D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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