#301FA6#301FA6

#301FA6 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.199 H 276.4°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#301FA6
RGBrgb(48, 31, 166)
HSLhsl(248, 69%, 39%)
HSVhsv(248, 81%, 65%)
CMYKcmyk(71.1%, 81.3%, 0%, 34.9%)
CIE-LABlab(24.83, 48.39, -68.48)
CIE-LCHlch(24.83, 83.85, 305.24°)
OKLaboklab(37.35% 0.0221 -0.1979)
OKLCHoklch(37.35% 0.199 276.4)
XYZxyz(8.5896, 4.3607, 36.4580)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301FA6 #95A61F
analogous
#1F51A6 #301FA6 #731FA6
triadic
#301FA6 #A6301F #1FA630
tetradic
#301FA6 #A61F51 #95A61F #1FA673
square
#301FA6 #A61F51 #95A61F #1FA673
split-complementary
#301FA6 #A6731F #51A61F
monochromatic
#120C3F #211572 #301FA6 #412BD7 #6F5EE1

Accessibility & contrast

On white

11.22
#301FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#301FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301FA6
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301FA6#FFFFFF#000000##FFFFFF
##301FA61.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #301fa6;
/* rgb */ color: rgb(48, 31, 166);
/* oklch */ color: oklch(37.4% 0.199 276.4);
Tailwind
colors: {
  custom: {
    50: '#7b5fc2',
    500: '#301fa6',
    950: '#000000',
  },
}
SCSS
$custom: #301fa6;
$custom-light: #7b5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#301fa6",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 247.556,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37351,
    "c": 0.19917,
    "h": 276.4
  },
  "luminance": 0.04362
}

Semantic roles & 50–950 ramp

primary
#301FA6
secondary
#B8C55B
accent
#EB3CD5
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #301FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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