#304AB4#304AB4

#304AB4 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.6% C 0.171 H 268.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#304AB4
RGBrgb(48, 74, 180)
HSLhsl(228, 58%, 45%)
HSVhsv(228, 73%, 71%)
CMYKcmyk(73.3%, 58.9%, 0%, 29.4%)
CIE-LABlab(35.64, 27.59, -59.11)
CIE-LCHlch(35.64, 65.23, 295.02°)
OKLaboklab(45.56% -0.0052 -0.1706)
OKLCHoklch(45.56% 0.171 268.3)
XYZxyz(11.9031, 8.8200, 44.2463)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AB4 #B49A30
analogous
#308CB4 #304AB4 #5830B4
triadic
#304AB4 #B4304A #4AB430
tetradic
#304AB4 #B4308C #B49A30 #30B458
square
#304AB4 #B4308C #B49A30 #30B458
split-complementary
#304AB4 #B45830 #8CB430
monochromatic
#162253 #233684 #304AB4 #516AD1 #8193DD

Accessibility & contrast

On white

7.60
#304AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#304AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AB4
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AB4#FFFFFF#000000##FFFFFF
##304AB41.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304ab4;
/* rgb */ color: rgb(48, 74, 180);
/* oklch */ color: oklch(45.6% 0.171 268.3);
Tailwind
colors: {
  custom: {
    50: '#7b7ccb',
    500: '#304ab4',
    950: '#000000',
  },
}
SCSS
$custom: #304ab4;
$custom-light: #7b7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#304ab4",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 180
  },
  "hsl": {
    "h": 228.182,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45563,
    "c": 0.17064,
    "h": 268.3
  },
  "luminance": 0.08821
}

Semantic roles & 50–950 ramp

primary
#304AB4
secondary
#C6B779
accent
#C347E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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