#301B9F#301B9F

#301B9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.194 H 277.6°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#301B9F
RGBrgb(48, 27, 159)
HSLhsl(250, 71%, 36%)
HSVhsv(250, 83%, 62%)
CMYKcmyk(69.8%, 83%, 0%, 37.6%)
CIE-LABlab(23.39, 48.13, -66.62)
CIE-LCHlch(23.39, 82.18, 305.85°)
OKLaboklab(36.12% 0.0258 -0.1924)
OKLCHoklch(36.12% 0.194 277.6)
XYZxyz(7.8668, 3.9147, 33.1352)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B9F #8A9F1B
analogous
#1B489F #301B9F #721B9F
triadic
#301B9F #9F301B #1B9F30
tetradic
#301B9F #9F1B48 #8A9F1B #1B9F72
square
#301B9F #9F1B48 #8A9F1B #1B9F72
split-complementary
#301B9F #9F721B #489F1B
monochromatic
#100936 #20126B #301B9F #4024D3 #6953E2

Accessibility & contrast

On white

11.78
#301B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301B9F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B9F#FFFFFF#000000##FFFFFF
##301B9F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301b9f;
/* rgb */ color: rgb(48, 27, 159);
/* oklch */ color: oklch(36.1% 0.194 277.6);
Tailwind
colors: {
  custom: {
    50: '#7a5dbd',
    500: '#301b9f',
    950: '#000000',
  },
}
SCSS
$custom: #301b9f;
$custom-light: #7a5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#301b9f",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 249.545,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36118,
    "c": 0.19417,
    "h": 277.6
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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