#304DB4#304DB4

#304DB4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.167 H 267.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#304DB4
RGBrgb(48, 77, 180)
HSLhsl(227, 58%, 45%)
HSVhsv(227, 73%, 71%)
CMYKcmyk(73.3%, 57.2%, 0%, 29.4%)
CIE-LABlab(36.42, 25.62, -57.83)
CIE-LCHlch(36.42, 63.25, 293.90°)
OKLaboklab(46.15% -0.0074 -0.1667)
OKLCHoklch(46.15% 0.167 267.4)
XYZxyz(12.1082, 9.2301, 44.3146)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DB4 #B49730
analogous
#308FB4 #304DB4 #5530B4
triadic
#304DB4 #B4304D #4DB430
tetradic
#304DB4 #B4308F #B49730 #30B455
square
#304DB4 #B4308F #B49730 #30B455
split-complementary
#304DB4 #B45530 #8FB430
monochromatic
#162453 #233884 #304DB4 #516DD1 #8195DD

Accessibility & contrast

On white

7.38
#304DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#304DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304DB4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DB4#FFFFFF#000000##FFFFFF
##304DB41.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304db4;
/* rgb */ color: rgb(48, 77, 180);
/* oklch */ color: oklch(46.2% 0.167 267.4);
Tailwind
colors: {
  custom: {
    50: '#7b7ecb',
    500: '#304db4',
    950: '#000000',
  },
}
SCSS
$custom: #304db4;
$custom-light: #7b7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#304db4",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 226.818,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46153,
    "c": 0.16692,
    "h": 267.4
  },
  "luminance": 0.09231
}

Semantic roles & 50–950 ramp

primary
#304DB4
secondary
#C6B679
accent
#BF47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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