#301D9C#301D9C

#301D9C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.189 H 277.9°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#301D9C
RGBrgb(48, 29, 156)
HSLhsl(249, 69%, 36%)
HSVhsv(249, 81%, 61%)
CMYKcmyk(69.2%, 81.4%, 0%, 38.8%)
CIE-LABlab(23.36, 46.29, -64.83)
CIE-LCHlch(23.36, 79.66, 305.53°)
OKLaboklab(36% 0.0259 -0.1873)
OKLCHoklch(36% 0.189 277.9)
XYZxyz(7.6571, 3.9067, 31.7966)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D9C #899C1D
analogous
#1D4A9C #301D9C #701D9C
triadic
#301D9C #9C301D #1D9C30
tetradic
#301D9C #9C1D4A #899C1D #1D9C70
square
#301D9C #9C1D4A #899C1D #1D9C70
split-complementary
#301D9C #9C701D #4A9C1D
monochromatic
#100A35 #201368 #301D9C #4027D0 #6954DF

Accessibility & contrast

On white

11.79
#301D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#301D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D9C
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D9C#FFFFFF#000000##FFFFFF
##301D9C1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301d9c;
/* rgb */ color: rgb(48, 29, 156);
/* oklch */ color: oklch(36.0% 0.189 277.9);
Tailwind
colors: {
  custom: {
    50: '#795dbb',
    500: '#301d9c',
    950: '#000000',
  },
}
SCSS
$custom: #301d9c;
$custom-light: #795dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#301d9c",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 248.976,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35998,
    "c": 0.18906,
    "h": 277.9
  },
  "luminance": 0.03907
}

Semantic roles & 50–950 ramp

primary
#301D9C
secondary
#B2C252
accent
#EB3CD1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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