#301BA5#301BA5

#301BA5 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.8% C 0.201 H 276.8°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#301BA5
RGBrgb(48, 27, 165)
HSLhsl(249, 72%, 38%)
HSVhsv(249, 84%, 65%)
CMYKcmyk(70.9%, 83.6%, 0%, 35.3%)
CIE-LABlab(24.09, 49.91, -69.10)
CIE-LCHlch(24.09, 85.24, 305.84°)
OKLaboklab(36.81% 0.024 -0.1997)
OKLCHoklch(36.81% 0.201 276.8)
XYZxyz(8.4002, 4.1281, 35.9441)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301BA5 #90A51B
analogous
#1B4BA5 #301BA5 #751BA5
triadic
#301BA5 #A5301B #1BA530
tetradic
#301BA5 #A51B4B #90A51B #1BA575
square
#301BA5 #A51B4B #90A51B #1BA575
split-complementary
#301BA5 #A5751B #4BA51B
monochromatic
#110A3C #211270 #301BA5 #3F24DA #6C57E3

Accessibility & contrast

On white

11.50
#301BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#301BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301BA5
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301BA5#FFFFFF#000000##FFFFFF
##301BA51.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA9
Deuteranopia (green-blind)
#0033A3
Tritanopia (blue-blind)
#004762
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #301ba5;
/* rgb */ color: rgb(48, 27, 165);
/* oklch */ color: oklch(36.8% 0.201 276.8);
Tailwind
colors: {
  custom: {
    50: '#7b5dc1',
    500: '#301ba5',
    950: '#000000',
  },
}
SCSS
$custom: #301ba5;
$custom-light: #7b5dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#301ba5",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 165
  },
  "hsl": {
    "h": 249.13,
    "s": 71.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36807,
    "c": 0.2011,
    "h": 276.8
  },
  "luminance": 0.04129
}

Semantic roles & 50–950 ramp

primary
#301BA5
secondary
#B5C755
accent
#EF39D3
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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