#301E96#301E96

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

Color values

HEX#301E96
RGBrgb(48, 30, 150)
HSLhsl(249, 67%, 35%)
HSVhsv(249, 80%, 59%)
CMYKcmyk(68%, 80%, 0%, 41.2%)
CIE-LABlab(22.86, 43.95, -61.97)
CIE-LCHlch(22.86, 75.97, 305.34°)
OKLaboklab(35.45% 0.0271 -0.179)
OKLCHoklch(35.45% 0.181 278.6)
XYZxyz(7.1864, 3.7583, 29.1950)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E96 #84961E
analogous
#1E4896 #301E96 #6C1E96
triadic
#301E96 #96301E #1E9630
tetradic
#301E96 #961E48 #84961E #1E966C
square
#301E96 #961E48 #84961E #1E966C
split-complementary
#301E96 #966C1E #48961E
monochromatic
#0F0A30 #201463 #301E96 #4028C9 #6752DC

Accessibility & contrast

On white

11.99
#301E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301E96
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E96#FFFFFF#000000##FFFFFF
##301E961.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301e96;
/* rgb */ color: rgb(48, 30, 150);
/* oklch */ color: oklch(35.4% 0.181 278.6);
Tailwind
colors: {
  custom: {
    50: '#785db6',
    500: '#301e96',
    950: '#000000',
  },
}
SCSS
$custom: #301e96;
$custom-light: #785db6;
$custom-dark: #000000;
JSON
{
  "hex": "#301e96",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 249,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35449,
    "c": 0.18104,
    "h": 278.6
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#301E96
secondary
#AFBF50
accent
#EA3ED0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301E96

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

Preview Lab → · Contrast checker → · Palette generator →

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