#304CB6#304CB6

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

Color values

HEX#304CB6
RGBrgb(48, 76, 182)
HSLhsl(227, 58%, 45%)
HSVhsv(227, 74%, 71%)
CMYKcmyk(73.6%, 58.2%, 0%, 28.6%)
CIE-LABlab(36.32, 27.02, -59.18)
CIE-LCHlch(36.32, 65.06, 294.54°)
OKLaboklab(46.12% -0.0066 -0.1708)
OKLCHoklch(46.12% 0.171 267.8)
XYZxyz(12.2439, 9.1734, 45.3723)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CB6 #B69A30
analogous
#308FB6 #304CB6 #5730B6
triadic
#304CB6 #B6304C #4CB630
tetradic
#304CB6 #B6308F #B69A30 #30B657
square
#304CB6 #B6308F #B69A30 #30B657
split-complementary
#304CB6 #B65730 #8FB630
monochromatic
#162455 #233886 #304CB6 #526CD1 #8295DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304CB6#FFFFFF#000000##FFFFFF
##304CB61.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)
#005CBA
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304cb6;
/* rgb */ color: rgb(48, 76, 182);
/* oklch */ color: oklch(46.1% 0.171 267.8);
Tailwind
colors: {
  custom: {
    50: '#7b7dcd',
    500: '#304cb6',
    950: '#000000',
  },
}
SCSS
$custom: #304cb6;
$custom-light: #7b7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#304cb6",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 182
  },
  "hsl": {
    "h": 227.463,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46121,
    "c": 0.17088,
    "h": 267.8
  },
  "luminance": 0.09175
}

Semantic roles & 50–950 ramp

primary
#304CB6
secondary
#C7B77B
accent
#C146E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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