#304FB7#304FB7

#304FB7 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.169 H 267.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#304FB7
RGBrgb(48, 79, 183)
HSLhsl(226, 58%, 45%)
HSVhsv(226, 74%, 72%)
CMYKcmyk(73.8%, 56.8%, 0%, 28.2%)
CIE-LABlab(37.18, 25.43, -58.36)
CIE-LCHlch(37.18, 63.66, 293.54°)
OKLaboklab(46.8% -0.0088 -0.1683)
OKLCHoklch(46.8% 0.169 267)
XYZxyz(12.5592, 9.6379, 45.9890)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FB7 #B79830
analogous
#3093B7 #304FB7 #5430B7
triadic
#304FB7 #B7304F #4FB730
tetradic
#304FB7 #B73093 #B79830 #30B754
square
#304FB7 #B73093 #B79830 #30B754
split-complementary
#304FB7 #B75430 #93B730
monochromatic
#172556 #233A87 #304FB7 #5270D2 #8398DE

Accessibility & contrast

On white

7.17
#304FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#304FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FB7
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FB7#FFFFFF#000000##FFFFFF
##304FB71.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #304fb7;
/* rgb */ color: rgb(48, 79, 183);
/* oklch */ color: oklch(46.8% 0.169 267.0);
Tailwind
colors: {
  custom: {
    50: '#7b7fcd',
    500: '#304fb7',
    950: '#000000',
  },
}
SCSS
$custom: #304fb7;
$custom-light: #7b7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#304fb7",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 226.222,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46796,
    "c": 0.16852,
    "h": 267
  },
  "luminance": 0.09639
}

Semantic roles & 50–950 ramp

primary
#304FB7
secondary
#C8B67B
accent
#BE46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #304FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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