#301FA7#301FA7

#301FA7 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.5% C 0.200 H 276.3°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#301FA7
RGBrgb(48, 31, 167)
HSLhsl(248, 69%, 39%)
HSVhsv(248, 81%, 65%)
CMYKcmyk(71.3%, 81.4%, 0%, 34.5%)
CIE-LABlab(24.94, 48.69, -68.90)
CIE-LCHlch(24.94, 84.37, 305.25°)
OKLaboklab(37.46% 0.0218 -0.1991)
OKLCHoklch(37.46% 0.2 276.3)
XYZxyz(8.6817, 4.3976, 36.9430)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301FA7 #96A71F
analogous
#1F52A7 #301FA7 #741FA7
triadic
#301FA7 #A7301F #1FA730
tetradic
#301FA7 #A71F52 #96A71F #1FA774
square
#301FA7 #A71F52 #96A71F #1FA774
split-complementary
#301FA7 #A7741F #52A71F
monochromatic
#120C40 #211573 #301FA7 #412BD8 #6F5FE1

Accessibility & contrast

On white

11.17
#301FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#301FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301FA7
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301FA7#FFFFFF#000000##FFFFFF
##301FA71.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #301fa7;
/* rgb */ color: rgb(48, 31, 167);
/* oklch */ color: oklch(37.5% 0.200 276.3);
Tailwind
colors: {
  custom: {
    50: '#7b5fc3',
    500: '#301fa7',
    950: '#000000',
  },
}
SCSS
$custom: #301fa7;
$custom-light: #7b5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#301fa7",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 247.5,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37464,
    "c": 0.20034,
    "h": 276.3
  },
  "luminance": 0.04398
}

Semantic roles & 50–950 ramp

primary
#301FA7
secondary
#B9C65C
accent
#EC3CD6
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #301FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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