#301FA5#301FA5

#301FA5 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.2% C 0.198 H 276.5°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#301FA5
RGBrgb(48, 31, 165)
HSLhsl(248, 68%, 38%)
HSVhsv(248, 81%, 65%)
CMYKcmyk(70.9%, 81.2%, 0%, 35.3%)
CIE-LABlab(24.72, 48.08, -68.07)
CIE-LCHlch(24.72, 83.34, 305.24°)
OKLaboklab(37.24% 0.0224 -0.1967)
OKLCHoklch(37.24% 0.198 276.5)
XYZxyz(8.4982, 4.3242, 35.9768)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301FA5 #94A51F
analogous
#1F51A5 #301FA5 #731FA5
triadic
#301FA5 #A5301F #1FA530
tetradic
#301FA5 #A51F51 #94A51F #1FA573
square
#301FA5 #A51F51 #94A51F #1FA573
split-complementary
#301FA5 #A5731F #51A51F
monochromatic
#120C3E #211571 #301FA5 #402AD7 #6E5EE1

Accessibility & contrast

On white

11.26
#301FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301FA5
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301FA5#FFFFFF#000000##FFFFFF
##301FA51.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301fa5;
/* rgb */ color: rgb(48, 31, 165);
/* oklch */ color: oklch(37.2% 0.198 276.5);
Tailwind
colors: {
  custom: {
    50: '#7b5fc1',
    500: '#301fa5',
    950: '#000000',
  },
}
SCSS
$custom: #301fa5;
$custom-light: #7b5fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#301fa5",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 247.612,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37239,
    "c": 0.198,
    "h": 276.5
  },
  "luminance": 0.04325
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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