#301E8F#301E8F

#301E8F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.173 H 279.7°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#301E8F
RGBrgb(48, 30, 143)
HSLhsl(250, 65%, 34%)
HSVhsv(250, 79%, 56%)
CMYKcmyk(66.4%, 79%, 0%, 43.9%)
CIE-LABlab(22.09, 41.75, -58.91)
CIE-LCHlch(22.09, 72.21, 305.33°)
OKLaboklab(34.68% 0.0291 -0.1701)
OKLCHoklch(34.68% 0.173 279.7)
XYZxyz(6.6395, 3.5396, 26.3146)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E8F #7D8F1E
analogous
#1E448F #301E8F #691E8F
triadic
#301E8F #8F301E #1E8F30
tetradic
#301E8F #8F1E44 #7D8F1E #1E8F69
square
#301E8F #8F1E44 #7D8F1E #1E8F69
split-complementary
#301E8F #8F691E #448F1E
monochromatic
#0E092A #1F135C #301E8F #4129C2 #644EDA

Accessibility & contrast

On white

12.30
#301E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#301E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E8F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E8F#FFFFFF#000000##FFFFFF
##301E8F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301e8f;
/* rgb */ color: rgb(48, 30, 143);
/* oklch */ color: oklch(34.7% 0.173 279.7);
Tailwind
colors: {
  custom: {
    50: '#765db1',
    500: '#301e8f',
    950: '#000000',
  },
}
SCSS
$custom: #301e8f;
$custom-light: #765db1;
$custom-dark: #000000;
JSON
{
  "hex": "#301e8f",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 249.558,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34684,
    "c": 0.17254,
    "h": 279.7
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#301E8F
secondary
#ABBC4C
accent
#E840CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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