#301E95#301E95

#301E95 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.180 H 278.8°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#301E95
RGBrgb(48, 30, 149)
HSLhsl(249, 66%, 35%)
HSVhsv(249, 80%, 58%)
CMYKcmyk(67.8%, 79.9%, 0%, 41.6%)
CIE-LABlab(22.75, 43.63, -61.54)
CIE-LCHlch(22.75, 75.44, 305.34°)
OKLaboklab(35.34% 0.0274 -0.1777)
OKLCHoklch(35.34% 0.18 278.8)
XYZxyz(7.1063, 3.7263, 28.7727)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E95 #83951E
analogous
#1E4795 #301E95 #6C1E95
triadic
#301E95 #95301E #1E9530
tetradic
#301E95 #951E47 #83951E #1E956C
square
#301E95 #951E47 #83951E #1E956C
split-complementary
#301E95 #956C1E #47951E
monochromatic
#0F092F #201462 #301E95 #4028C8 #6651DC

Accessibility & contrast

On white

12.03
#301E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301E95
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E95#FFFFFF#000000##FFFFFF
##301E951.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #301e95;
/* rgb */ color: rgb(48, 30, 149);
/* oklch */ color: oklch(35.3% 0.180 278.8);
Tailwind
colors: {
  custom: {
    50: '#785db5',
    500: '#301e95',
    950: '#000000',
  },
}
SCSS
$custom: #301e95;
$custom-light: #785db5;
$custom-dark: #000000;
JSON
{
  "hex": "#301e95",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 249.076,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35339,
    "c": 0.17984,
    "h": 278.8
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#301E95
secondary
#AEBF50
accent
#E93ED0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301E95

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

Preview Lab → · Contrast checker → · Palette generator →

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