#304FB8#304FB8

#304FB8 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.9% C 0.170 H 267.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#304FB8
RGBrgb(48, 79, 184)
HSLhsl(226, 59%, 45%)
HSVhsv(226, 74%, 72%)
CMYKcmyk(73.9%, 57.1%, 0%, 27.8%)
CIE-LABlab(37.26, 25.80, -58.82)
CIE-LCHlch(37.26, 64.23, 293.68°)
OKLaboklab(46.88% -0.0088 -0.1696)
OKLCHoklch(46.88% 0.17 267)
XYZxyz(12.6636, 9.6797, 46.5391)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FB8 #B89930
analogous
#3093B8 #304FB8 #5530B8
triadic
#304FB8 #B8304F #4FB830
tetradic
#304FB8 #B83093 #B89930 #30B855
square
#304FB8 #B83093 #B89930 #30B855
split-complementary
#304FB8 #B85530 #93B830
monochromatic
#172557 #233A87 #304FB8 #5370D2 #8498DF

Accessibility & contrast

On white

7.15
#304FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#304FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FB8
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FB8#FFFFFF#000000##FFFFFF
##304FB81.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0052B6
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #304fb8;
/* rgb */ color: rgb(48, 79, 184);
/* oklch */ color: oklch(46.9% 0.170 267.0);
Tailwind
colors: {
  custom: {
    50: '#7b7fce',
    500: '#304fb8',
    950: '#000000',
  },
}
SCSS
$custom: #304fb8;
$custom-light: #7b7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#304fb8",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 184
  },
  "hsl": {
    "h": 226.324,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46878,
    "c": 0.16988,
    "h": 267
  },
  "luminance": 0.09681
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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