#301BA7#301BA7

#301BA7 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.203 H 276.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#301BA7
RGBrgb(48, 27, 167)
HSLhsl(249, 72%, 38%)
HSVhsv(249, 84%, 65%)
CMYKcmyk(71.3%, 83.8%, 0%, 34.5%)
CIE-LABlab(24.33, 50.50, -69.92)
CIE-LCHlch(24.33, 86.26, 305.84°)
OKLaboklab(37.04% 0.0234 -0.202)
OKLCHoklch(37.04% 0.203 276.6)
XYZxyz(8.5836, 4.2015, 36.9103)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301BA7 #92A71B
analogous
#1B4CA7 #301BA7 #761BA7
triadic
#301BA7 #A7301B #1BA730
tetradic
#301BA7 #A71B4C #92A71B #1BA776
square
#301BA7 #A71B4C #92A71B #1BA776
split-complementary
#301BA7 #A7761B #4CA71B
monochromatic
#120A3E #211272 #301BA7 #3F24DC #6D58E4

Accessibility & contrast

On white

11.41
#301BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#301BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301BA7
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301BA7#FFFFFF#000000##FFFFFF
##301BA71.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #301ba7;
/* rgb */ color: rgb(48, 27, 167);
/* oklch */ color: oklch(37.0% 0.203 276.6);
Tailwind
colors: {
  custom: {
    50: '#7c5dc3',
    500: '#301ba7',
    950: '#000000',
  },
}
SCSS
$custom: #301ba7;
$custom-light: #7c5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#301ba7",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 249,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37038,
    "c": 0.20339,
    "h": 276.6
  },
  "luminance": 0.04202
}

Semantic roles & 50–950 ramp

primary
#301BA7
secondary
#B7C856
accent
#EF39D4
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #301BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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