#301E8B#301E8B

#301E8B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.168 H 280.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#301E8B
RGBrgb(48, 30, 139)
HSLhsl(250, 64%, 33%)
HSVhsv(250, 78%, 55%)
CMYKcmyk(65.5%, 78.4%, 0%, 45.5%)
CIE-LABlab(21.65, 40.49, -57.13)
CIE-LCHlch(21.65, 70.03, 305.33°)
OKLaboklab(34.25% 0.0302 -0.1649)
OKLCHoklch(34.25% 0.168 280.4)
XYZxyz(6.3419, 3.4205, 24.7471)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E8B #798B1E
analogous
#1E428B #301E8B #661E8B
triadic
#301E8B #8B301E #1E8B30
tetradic
#301E8B #8B1E42 #798B1E #1E8B66
square
#301E8B #8B1E42 #798B1E #1E8B66
split-complementary
#301E8B #8B661E #428B1E
monochromatic
#0D0826 #1F1359 #301E8B #4129BD #624BD8

Accessibility & contrast

On white

12.47
#301E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#301E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E8B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E8B#FFFFFF#000000##FFFFFF
##301E8B1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301e8b;
/* rgb */ color: rgb(48, 30, 139);
/* oklch */ color: oklch(34.3% 0.168 280.4);
Tailwind
colors: {
  custom: {
    50: '#755dae',
    500: '#301e8b',
    950: '#000000',
  },
}
SCSS
$custom: #301e8b;
$custom-light: #755dae;
$custom-dark: #000000;
JSON
{
  "hex": "#301e8b",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 249.908,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34253,
    "c": 0.16762,
    "h": 280.4
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#301E8B
secondary
#A8BB4A
accent
#E740CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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