#301DA7#301DA7

#301DA7 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.202 H 276.4°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#301DA7
RGBrgb(48, 29, 167)
HSLhsl(248, 70%, 38%)
HSVhsv(248, 83%, 65%)
CMYKcmyk(71.3%, 82.6%, 0%, 34.5%)
CIE-LABlab(24.63, 49.62, -69.42)
CIE-LCHlch(24.63, 85.33, 305.55°)
OKLaboklab(37.24% 0.0226 -0.2006)
OKLCHoklch(37.24% 0.202 276.4)
XYZxyz(8.6311, 4.2963, 36.9261)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301DA7 #94A71D
analogous
#1D4FA7 #301DA7 #751DA7
triadic
#301DA7 #A7301D #1DA730
tetradic
#301DA7 #A71D4F #94A71D #1DA775
square
#301DA7 #A71D4F #94A71D #1DA775
split-complementary
#301DA7 #A7751D #4FA71D
monochromatic
#120B3F #211473 #301DA7 #4028DA #6E5CE3

Accessibility & contrast

On white

11.29
#301DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#301DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301DA7
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301DA7#FFFFFF#000000##FFFFFF
##301DA71.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #301da7;
/* rgb */ color: rgb(48, 29, 167);
/* oklch */ color: oklch(37.2% 0.202 276.4);
Tailwind
colors: {
  custom: {
    50: '#7c5ec3',
    500: '#301da7',
    950: '#000000',
  },
}
SCSS
$custom: #301da7;
$custom-light: #7c5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#301da7",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 248.261,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37245,
    "c": 0.20191,
    "h": 276.4
  },
  "luminance": 0.04297
}

Semantic roles & 50–950 ramp

primary
#301DA7
secondary
#B8C759
accent
#ED3BD5
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #301DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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