#304DB8#304DB8

#304DB8 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.172 H 267.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#304DB8
RGBrgb(48, 77, 184)
HSLhsl(227, 59%, 45%)
HSVhsv(227, 74%, 72%)
CMYKcmyk(73.9%, 58.2%, 0%, 27.8%)
CIE-LABlab(36.73, 27.11, -59.68)
CIE-LCHlch(36.73, 65.55, 294.43°)
OKLaboklab(46.48% -0.0073 -0.1722)
OKLCHoklch(46.48% 0.172 267.6)
XYZxyz(12.5215, 9.3955, 46.4917)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DB8 #B89B30
analogous
#3091B8 #304DB8 #5730B8
triadic
#304DB8 #B8304D #4DB830
tetradic
#304DB8 #B83091 #B89B30 #30B857
square
#304DB8 #B83091 #B89B30 #30B857
split-complementary
#304DB8 #B85730 #91B830
monochromatic
#172457 #233987 #304DB8 #536ED2 #8497DF

Accessibility & contrast

On white

7.29
#304DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#304DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304DB8
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DB8#FFFFFF#000000##FFFFFF
##304DB81.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#0050B6
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304db8;
/* rgb */ color: rgb(48, 77, 184);
/* oklch */ color: oklch(46.5% 0.172 267.6);
Tailwind
colors: {
  custom: {
    50: '#7c7ece',
    500: '#304db8',
    950: '#000000',
  },
}
SCSS
$custom: #304db8;
$custom-light: #7c7ece;
$custom-dark: #000000;
JSON
{
  "hex": "#304db8",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 184
  },
  "hsl": {
    "h": 227.206,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46483,
    "c": 0.17234,
    "h": 267.6
  },
  "luminance": 0.09397
}

Semantic roles & 50–950 ramp

primary
#304DB8
secondary
#C8B87C
accent
#C146E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #304DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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