#304BB4#304BB4

#304BB4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.169 H 268.0°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#304BB4
RGBrgb(48, 75, 180)
HSLhsl(228, 58%, 45%)
HSVhsv(228, 73%, 71%)
CMYKcmyk(73.3%, 58.3%, 0%, 29.4%)
CIE-LABlab(35.90, 26.93, -58.69)
CIE-LCHlch(35.90, 64.57, 294.65°)
OKLaboklab(45.76% -0.0059 -0.1693)
OKLCHoklch(45.76% 0.169 268)
XYZxyz(11.9704, 8.9546, 44.2687)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BB4 #B49930
analogous
#308DB4 #304BB4 #5730B4
triadic
#304BB4 #B4304B #4BB430
tetradic
#304BB4 #B4308D #B49930 #30B457
square
#304BB4 #B4308D #B49930 #30B457
split-complementary
#304BB4 #B45730 #8DB430
monochromatic
#162353 #233784 #304BB4 #516BD1 #8194DD

Accessibility & contrast

On white

7.52
#304BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#304BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304BB4
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304BB4#FFFFFF#000000##FFFFFF
##304BB41.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304bb4;
/* rgb */ color: rgb(48, 75, 180);
/* oklch */ color: oklch(45.8% 0.169 268.0);
Tailwind
colors: {
  custom: {
    50: '#7b7ccb',
    500: '#304bb4',
    950: '#000000',
  },
}
SCSS
$custom: #304bb4;
$custom-light: #7b7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#304bb4",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 180
  },
  "hsl": {
    "h": 227.727,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45758,
    "c": 0.1694,
    "h": 268
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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