#304FB5#304FB5

#304FB5 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.6% C 0.166 H 266.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#304FB5
RGBrgb(48, 79, 181)
HSLhsl(226, 58%, 45%)
HSVhsv(226, 73%, 71%)
CMYKcmyk(73.5%, 56.4%, 0%, 29%)
CIE-LABlab(37.03, 24.68, -57.43)
CIE-LCHlch(37.03, 62.51, 293.25°)
OKLaboklab(46.63% -0.0089 -0.1655)
OKLCHoklch(46.63% 0.166 266.9)
XYZxyz(12.3525, 9.5552, 44.9004)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FB5 #B59630
analogous
#3092B5 #304FB5 #5330B5
triadic
#304FB5 #B5304F #4FB530
tetradic
#304FB5 #B53092 #B59630 #30B553
square
#304FB5 #B53092 #B59630 #30B553
split-complementary
#304FB5 #B55330 #92B530
monochromatic
#162554 #233A85 #304FB5 #516FD1 #8297DE

Accessibility & contrast

On white

7.21
#304FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#304FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FB5
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FB5#FFFFFF#000000##FFFFFF
##304FB51.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #304fb5;
/* rgb */ color: rgb(48, 79, 181);
/* oklch */ color: oklch(46.6% 0.166 266.9);
Tailwind
colors: {
  custom: {
    50: '#7b7fcc',
    500: '#304fb5',
    950: '#000000',
  },
}
SCSS
$custom: #304fb5;
$custom-light: #7b7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#304fb5",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 226.015,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46633,
    "c": 0.16579,
    "h": 266.9
  },
  "luminance": 0.09557
}

Semantic roles & 50–950 ramp

primary
#304FB5
secondary
#C7B57A
accent
#BD46E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #304FB5

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

Preview Lab → · Contrast checker → · Palette generator →

#304FB5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva