#304BB9#304BB9

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

Color values

HEX#304BB9
RGBrgb(48, 75, 185)
HSLhsl(228, 59%, 46%)
HSVhsv(228, 74%, 73%)
CMYKcmyk(74.1%, 59.5%, 0%, 27.5%)
CIE-LABlab(36.29, 28.79, -60.99)
CIE-LCHlch(36.29, 67.44, 295.27°)
OKLaboklab(46.18% -0.0058 -0.1761)
OKLCHoklch(46.18% 0.176 268.1)
XYZxyz(12.4889, 9.1620, 46.9998)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BB9 #B99E30
analogous
#308FB9 #304BB9 #5930B9
triadic
#304BB9 #B9304B #4BB930
tetradic
#304BB9 #B9308F #B99E30 #30B959
square
#304BB9 #B9308F #B99E30 #30B959
split-complementary
#304BB9 #B95930 #8FB930
monochromatic
#172458 #233788 #304BB9 #546DD3 #8496DF

Accessibility & contrast

On white

7.41
#304BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#304BB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304BB9
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304BB9#FFFFFF#000000##FFFFFF
##304BB91.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304bb9;
/* rgb */ color: rgb(48, 75, 185);
/* oklch */ color: oklch(46.2% 0.176 268.1);
Tailwind
colors: {
  custom: {
    50: '#7c7dcf',
    500: '#304bb9',
    950: '#000000',
  },
}
SCSS
$custom: #304bb9;
$custom-light: #7c7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#304bb9",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 185
  },
  "hsl": {
    "h": 228.175,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46179,
    "c": 0.17616,
    "h": 268.1
  },
  "luminance": 0.09163
}

Semantic roles & 50–950 ramp

primary
#304BB9
secondary
#C9B97C
accent
#C346E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #304BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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