#301E9D#301E9D

#301E9D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.189 H 277.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#301E9D
RGBrgb(48, 30, 157)
HSLhsl(249, 68%, 37%)
HSVhsv(249, 81%, 62%)
CMYKcmyk(69.4%, 80.9%, 0%, 38.4%)
CIE-LABlab(23.64, 46.11, -64.98)
CIE-LCHlch(23.64, 79.67, 305.36°)
OKLaboklab(36.23% 0.0251 -0.1877)
OKLCHoklch(36.23% 0.189 277.6)
XYZxyz(7.7670, 3.9906, 32.2527)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E9D #8B9D1E
analogous
#1E4C9D #301E9D #701E9D
triadic
#301E9D #9D301E #1E9D30
tetradic
#301E9D #9D1E4C #8B9D1E #1E9D70
square
#301E9D #9D1E4C #8B9D1E #1E9D70
split-complementary
#301E9D #9D701E #4C9D1E
monochromatic
#110A36 #20146A #301E9D #4028D0 #6A57DF

Accessibility & contrast

On white

11.68
#301E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#301E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E9D
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E9D#FFFFFF#000000##FFFFFF
##301E9D1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301e9d;
/* rgb */ color: rgb(48, 30, 157);
/* oklch */ color: oklch(36.2% 0.189 277.6);
Tailwind
colors: {
  custom: {
    50: '#795ebb',
    500: '#301e9d',
    950: '#000000',
  },
}
SCSS
$custom: #301e9d;
$custom-light: #795ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#301e9d",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 248.504,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36226,
    "c": 0.1894,
    "h": 277.6
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#301E9D
secondary
#B3C254
accent
#EB3DD2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #301E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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