#301D97#301D97

#301D97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.183 H 278.6°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#301D97
RGBrgb(48, 29, 151)
HSLhsl(249, 68%, 35%)
HSVhsv(249, 81%, 59%)
CMYKcmyk(68.2%, 80.8%, 0%, 40.8%)
CIE-LABlab(22.80, 44.75, -62.69)
CIE-LCHlch(22.80, 77.02, 305.52°)
OKLaboklab(35.44% 0.0273 -0.1811)
OKLCHoklch(35.44% 0.183 278.6)
XYZxyz(7.2424, 3.7409, 29.6125)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D97 #84971D
analogous
#1D4797 #301D97 #6D1D97
triadic
#301D97 #97301D #1D9730
tetradic
#301D97 #971D47 #84971D #1D976D
square
#301D97 #971D47 #84971D #1D976D
split-complementary
#301D97 #976D1D #47971D
monochromatic
#0F0930 #201364 #301D97 #4027CA #6751DE

Accessibility & contrast

On white

12.01
#301D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#301D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D97
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D97#FFFFFF#000000##FFFFFF
##301D971.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #301d97;
/* rgb */ color: rgb(48, 29, 151);
/* oklch */ color: oklch(35.4% 0.183 278.6);
Tailwind
colors: {
  custom: {
    50: '#785db7',
    500: '#301d97',
    950: '#000000',
  },
}
SCSS
$custom: #301d97;
$custom-light: #785db7;
$custom-dark: #000000;
JSON
{
  "hex": "#301d97",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 249.344,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3544,
    "c": 0.18312,
    "h": 278.6
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#301D97
secondary
#AFC04F
accent
#EB3DD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301D97

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

Preview Lab → · Contrast checker → · Palette generator →

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