#301D9F#301D9F

#301D9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.193 H 277.4°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#301D9F
RGBrgb(48, 29, 159)
HSLhsl(249, 69%, 37%)
HSVhsv(249, 82%, 62%)
CMYKcmyk(69.8%, 81.8%, 0%, 37.6%)
CIE-LABlab(23.70, 47.20, -66.09)
CIE-LCHlch(23.70, 81.22, 305.53°)
OKLaboklab(36.34% 0.025 -0.191)
OKLCHoklch(36.34% 0.193 277.4)
XYZxyz(7.9143, 4.0096, 33.1510)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D9F #8C9F1D
analogous
#1D4B9F #301D9F #711D9F
triadic
#301D9F #9F301D #1D9F30
tetradic
#301D9F #9F1D4B #8C9F1D #1D9F71
square
#301D9F #9F1D4B #8C9F1D #1D9F71
split-complementary
#301D9F #9F711D #4B9F1D
monochromatic
#110A37 #20146B #301D9F #4026D3 #6A56E0

Accessibility & contrast

On white

11.65
#301D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301D9F
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D9F#FFFFFF#000000##FFFFFF
##301D9F1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301d9f;
/* rgb */ color: rgb(48, 29, 159);
/* oklch */ color: oklch(36.3% 0.193 277.4);
Tailwind
colors: {
  custom: {
    50: '#7a5ebd',
    500: '#301d9f',
    950: '#000000',
  },
}
SCSS
$custom: #301d9f;
$custom-light: #7a5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#301d9f",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 248.769,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36336,
    "c": 0.1926,
    "h": 277.4
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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