#301E9E#301E9E

#301E9E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.191 H 277.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#301E9E
RGBrgb(48, 30, 158)
HSLhsl(248, 68%, 37%)
HSVhsv(248, 81%, 62%)
CMYKcmyk(69.6%, 81%, 0%, 38%)
CIE-LABlab(23.75, 46.42, -65.40)
CIE-LCHlch(23.75, 80.20, 305.37°)
OKLaboklab(36.34% 0.0248 -0.189)
OKLCHoklch(36.34% 0.191 277.5)
XYZxyz(7.8528, 4.0248, 32.7042)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E9E #8C9E1E
analogous
#1E4C9E #301E9E #701E9E
triadic
#301E9E #9E301E #1E9E30
tetradic
#301E9E #9E1E4C #8C9E1E #1E9E70
square
#301E9E #9E1E4C #8C9E1E #1E9E70
split-complementary
#301E9E #9E701E #4C9E1E
monochromatic
#110A37 #20146B #301E9E #4028D1 #6A57DF

Accessibility & contrast

On white

11.63
#301E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#301E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E9E
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E9E#FFFFFF#000000##FFFFFF
##301E9E1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #301e9e;
/* rgb */ color: rgb(48, 30, 158);
/* oklch */ color: oklch(36.3% 0.191 277.5);
Tailwind
colors: {
  custom: {
    50: '#7a5ebc',
    500: '#301e9e',
    950: '#000000',
  },
}
SCSS
$custom: #301e9e;
$custom-light: #7a5ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#301e9e",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 248.438,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36338,
    "c": 0.19058,
    "h": 277.5
  },
  "luminance": 0.04026
}

Semantic roles & 50–950 ramp

primary
#301E9E
secondary
#B3C355
accent
#EB3DD2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #301E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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