#301FB4#301FB4

#301FB4 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.9% C 0.215 H 274.8°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#301FB4
RGBrgb(48, 31, 180)
HSLhsl(247, 71%, 41%)
HSVhsv(247, 83%, 71%)
CMYKcmyk(73.3%, 82.8%, 0%, 29.4%)
CIE-LABlab(26.46, 52.61, -74.21)
CIE-LCHlch(26.46, 90.96, 305.33°)
OKLaboklab(38.95% 0.0182 -0.2145)
OKLCHoklch(38.95% 0.215 274.8)
XYZxyz(9.9444, 4.9026, 43.5934)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301FB4 #A3B41F
analogous
#1F59B4 #301FB4 #7B1FB4
triadic
#301FB4 #B4301F #1FB430
tetradic
#301FB4 #B41F59 #A3B41F #1FB47B
square
#301FB4 #B41F59 #A3B41F #1FB47B
split-complementary
#301FB4 #B47B1F #59B41F
monochromatic
#140D4C #221680 #301FB4 #4734DC #7768E5

Accessibility & contrast

On white

10.60
#301FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#301FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301FB4
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301FB4#FFFFFF#000000##FFFFFF
##301FB41.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#0038B2
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #301fb4;
/* rgb */ color: rgb(48, 31, 180);
/* oklch */ color: oklch(38.9% 0.215 274.8);
Tailwind
colors: {
  custom: {
    50: '#7e60cc',
    500: '#301fb4',
    950: '#000000',
  },
}
SCSS
$custom: #301fb4;
$custom-light: #7e60cc;
$custom-dark: #000000;
JSON
{
  "hex": "#301fb4",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 246.846,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38948,
    "c": 0.21532,
    "h": 274.8
  },
  "luminance": 0.04904
}

Semantic roles & 50–950 ramp

primary
#301FB4
secondary
#BFCB64
accent
#ED3AD9
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #301FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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