#304BB7#304BB7

#304BB7 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.173 H 268.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#304BB7
RGBrgb(48, 75, 183)
HSLhsl(228, 58%, 45%)
HSVhsv(228, 74%, 72%)
CMYKcmyk(73.8%, 59%, 0%, 28.2%)
CIE-LABlab(36.13, 28.05, -60.07)
CIE-LCHlch(36.13, 66.30, 295.03°)
OKLaboklab(46.01% -0.0059 -0.1734)
OKLCHoklch(46.01% 0.173 268.1)
XYZxyz(12.2793, 9.0781, 45.8957)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BB7 #B79C30
analogous
#308EB7 #304BB7 #5830B7
triadic
#304BB7 #B7304B #4BB730
tetradic
#304BB7 #B7308E #B79C30 #30B758
square
#304BB7 #B7308E #B79C30 #30B758
split-complementary
#304BB7 #B75830 #8EB730
monochromatic
#172356 #233787 #304BB7 #526CD2 #8395DE

Accessibility & contrast

On white

7.46
#304BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#304BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304BB7
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304BB7#FFFFFF#000000##FFFFFF
##304BB71.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304bb7;
/* rgb */ color: rgb(48, 75, 183);
/* oklch */ color: oklch(46.0% 0.173 268.1);
Tailwind
colors: {
  custom: {
    50: '#7b7dcd',
    500: '#304bb7',
    950: '#000000',
  },
}
SCSS
$custom: #304bb7;
$custom-light: #7b7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#304bb7",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 228,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4601,
    "c": 0.17346,
    "h": 268.1
  },
  "luminance": 0.09079
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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