#301B9E#301B9E

#301B9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.193 H 277.8°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#301B9E
RGBrgb(48, 27, 158)
HSLhsl(250, 71%, 36%)
HSVhsv(250, 83%, 62%)
CMYKcmyk(69.6%, 82.9%, 0%, 38%)
CIE-LABlab(23.27, 47.83, -66.20)
CIE-LCHlch(23.27, 81.67, 305.85°)
OKLaboklab(36% 0.0261 -0.1912)
OKLCHoklch(36% 0.193 277.8)
XYZxyz(7.7804, 3.8802, 32.6800)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B9E #899E1B
analogous
#1B489E #301B9E #721B9E
triadic
#301B9E #9E301B #1B9E30
tetradic
#301B9E #9E1B48 #899E1B #1B9E72
square
#301B9E #9E1B48 #899E1B #1B9E72
split-complementary
#301B9E #9E721B #489E1B
monochromatic
#100935 #20126A #301B9E #4024D2 #6952E1

Accessibility & contrast

On white

11.82
#301B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#301B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B9E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B9E#FFFFFF#000000##FFFFFF
##301B9E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301b9e;
/* rgb */ color: rgb(48, 27, 158);
/* oklch */ color: oklch(36.0% 0.193 277.8);
Tailwind
colors: {
  custom: {
    50: '#7a5cbc',
    500: '#301b9e',
    950: '#000000',
  },
}
SCSS
$custom: #301b9e;
$custom-light: #7a5cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#301b9e",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 249.618,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36004,
    "c": 0.19302,
    "h": 277.8
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#301B9E
secondary
#B2C451
accent
#EE3AD1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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