#301BA8#301BA8

#301BA8 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.2% C 0.205 H 276.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#301BA8
RGBrgb(48, 27, 168)
HSLhsl(249, 72%, 38%)
HSVhsv(249, 84%, 66%)
CMYKcmyk(71.4%, 83.9%, 0%, 34.1%)
CIE-LABlab(24.45, 50.80, -70.33)
CIE-LCHlch(24.45, 86.76, 305.84°)
OKLaboklab(37.15% 0.023 -0.2032)
OKLCHoklch(37.15% 0.205 276.5)
XYZxyz(8.6764, 4.2386, 37.3991)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301BA8 #93A81B
analogous
#1B4CA8 #301BA8 #761BA8
triadic
#301BA8 #A8301B #1BA830
tetradic
#301BA8 #A81B4C #93A81B #1BA876
square
#301BA8 #A81B4C #93A81B #1BA876
split-complementary
#301BA8 #A8761B #4CA81B
monochromatic
#120A3F #211373 #301BA8 #4024DC #6E59E4

Accessibility & contrast

On white

11.36
#301BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#301BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301BA8
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301BA8#FFFFFF#000000##FFFFFF
##301BA81.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #301ba8;
/* rgb */ color: rgb(48, 27, 168);
/* oklch */ color: oklch(37.2% 0.205 276.5);
Tailwind
colors: {
  custom: {
    50: '#7c5dc3',
    500: '#301ba8',
    950: '#000000',
  },
}
SCSS
$custom: #301ba8;
$custom-light: #7c5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#301ba8",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 248.936,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37153,
    "c": 0.20454,
    "h": 276.5
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#301BA8
secondary
#B7C857
accent
#EF39D4
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #301BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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