#301FA1#301FA1

#301FA1 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.193 H 277.0°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#301FA1
RGBrgb(48, 31, 161)
HSLhsl(248, 68%, 38%)
HSVhsv(248, 81%, 63%)
CMYKcmyk(70.2%, 80.7%, 0%, 36.9%)
CIE-LABlab(24.26, 46.86, -66.39)
CIE-LCHlch(24.26, 81.26, 305.21°)
OKLaboklab(36.79% 0.0235 -0.1919)
OKLCHoklch(36.79% 0.193 277)
XYZxyz(8.1398, 4.1808, 34.0893)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301FA1 #90A11F
analogous
#1F4FA1 #301FA1 #711FA1
triadic
#301FA1 #A1301F #1FA130
tetradic
#301FA1 #A11F4F #90A11F #1FA171
square
#301FA1 #A11F4F #90A11F #1FA171
split-complementary
#301FA1 #A1711F #4FA11F
monochromatic
#110B3A #21156E #301FA1 #3F29D4 #6C5BDF

Accessibility & contrast

On white

11.44
#301FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301FA1
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301FA1#FFFFFF#000000##FFFFFF
##301FA11.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #301fa1;
/* rgb */ color: rgb(48, 31, 161);
/* oklch */ color: oklch(36.8% 0.193 277.0);
Tailwind
colors: {
  custom: {
    50: '#7a5fbe',
    500: '#301fa1',
    950: '#000000',
  },
}
SCSS
$custom: #301fa1;
$custom-light: #7a5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#301fa1",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 247.846,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3679,
    "c": 0.1933,
    "h": 277
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#301FA1
secondary
#B5C458
accent
#EB3DD4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #301FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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