#301FA4#301FA4

#301FA4 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.197 H 276.6°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#301FA4
RGBrgb(48, 31, 164)
HSLhsl(248, 68%, 38%)
HSVhsv(248, 81%, 64%)
CMYKcmyk(70.7%, 81.1%, 0%, 35.7%)
CIE-LABlab(24.60, 47.78, -67.65)
CIE-LCHlch(24.60, 82.82, 305.23°)
OKLaboklab(37.13% 0.0227 -0.1955)
OKLCHoklch(37.13% 0.197 276.6)
XYZxyz(8.4076, 4.2879, 35.4993)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301FA4 #93A41F
analogous
#1F50A4 #301FA4 #721FA4
triadic
#301FA4 #A4301F #1FA430
tetradic
#301FA4 #A41F50 #93A41F #1FA472
square
#301FA4 #A41F50 #93A41F #1FA472
split-complementary
#301FA4 #A4721F #50A41F
monochromatic
#120C3D #211571 #301FA4 #402AD7 #6E5DE0

Accessibility & contrast

On white

11.30
#301FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301FA4
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301FA4#FFFFFF#000000##FFFFFF
##301FA41.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #301fa4;
/* rgb */ color: rgb(48, 31, 164);
/* oklch */ color: oklch(37.1% 0.197 276.6);
Tailwind
colors: {
  custom: {
    50: '#7b5fc0',
    500: '#301fa4',
    950: '#000000',
  },
}
SCSS
$custom: #301fa4;
$custom-light: #7b5fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#301fa4",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 247.669,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37126,
    "c": 0.19683,
    "h": 276.6
  },
  "luminance": 0.04289
}

Semantic roles & 50–950 ramp

primary
#301FA4
secondary
#B7C55A
accent
#EB3DD5
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #301FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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