#301D9E#301D9E

#301D9E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.191 H 277.6°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#301D9E
RGBrgb(48, 29, 158)
HSLhsl(249, 69%, 37%)
HSVhsv(249, 82%, 62%)
CMYKcmyk(69.6%, 81.6%, 0%, 38%)
CIE-LABlab(23.59, 46.90, -65.67)
CIE-LCHlch(23.59, 80.70, 305.53°)
OKLaboklab(36.22% 0.0253 -0.1897)
OKLCHoklch(36.22% 0.191 277.6)
XYZxyz(7.8278, 3.9750, 32.6959)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D9E #8B9E1D
analogous
#1D4B9E #301D9E #711D9E
triadic
#301D9E #9E301D #1D9E30
tetradic
#301D9E #9E1D4B #8B9E1D #1D9E71
square
#301D9E #9E1D4B #8B9E1D #1D9E71
split-complementary
#301D9E #9E711D #4B9E1D
monochromatic
#110A37 #20146A #301D9E #4026D2 #6A56E0

Accessibility & contrast

On white

11.70
#301D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#301D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D9E
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D9E#FFFFFF#000000##FFFFFF
##301D9E1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301d9e;
/* rgb */ color: rgb(48, 29, 158);
/* oklch */ color: oklch(36.2% 0.191 277.6);
Tailwind
colors: {
  custom: {
    50: '#7a5dbc',
    500: '#301d9e',
    950: '#000000',
  },
}
SCSS
$custom: #301d9e;
$custom-light: #7a5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#301d9e",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 248.837,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36223,
    "c": 0.19142,
    "h": 277.6
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

primary
#301D9E
secondary
#B3C354
accent
#EC3CD2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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