#304CB5#304CB5

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

Color values

HEX#304CB5
RGBrgb(48, 76, 181)
HSLhsl(227, 58%, 45%)
HSVhsv(227, 73%, 71%)
CMYKcmyk(73.5%, 58%, 0%, 29%)
CIE-LABlab(36.24, 26.65, -58.72)
CIE-LCHlch(36.24, 64.49, 294.41°)
OKLaboklab(46.04% -0.0066 -0.1694)
OKLCHoklch(46.04% 0.17 267.8)
XYZxyz(12.1410, 9.1322, 44.8299)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CB5 #B59930
analogous
#308FB5 #304CB5 #5630B5
triadic
#304CB5 #B5304C #4CB530
tetradic
#304CB5 #B5308F #B59930 #30B556
square
#304CB5 #B5308F #B59930 #30B556
split-complementary
#304CB5 #B55630 #8FB530
monochromatic
#162354 #233885 #304CB5 #516CD1 #8295DE

Accessibility & contrast

On white

7.43
#304CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304CB5
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CB5#FFFFFF#000000##FFFFFF
##304CB51.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304cb5;
/* rgb */ color: rgb(48, 76, 181);
/* oklch */ color: oklch(46.0% 0.170 267.8);
Tailwind
colors: {
  custom: {
    50: '#7b7dcc',
    500: '#304cb5',
    950: '#000000',
  },
}
SCSS
$custom: #304cb5;
$custom-light: #7b7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#304cb5",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 227.368,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46038,
    "c": 0.16952,
    "h": 267.8
  },
  "luminance": 0.09133
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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