#304DB3#304DB3

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

Color values

HEX#304DB3
RGBrgb(48, 77, 179)
HSLhsl(227, 58%, 45%)
HSVhsv(227, 73%, 70%)
CMYKcmyk(73.2%, 57%, 0%, 29.8%)
CIE-LABlab(36.35, 25.25, -57.36)
CIE-LCHlch(36.35, 62.67, 293.76°)
OKLaboklab(46.07% -0.0075 -0.1654)
OKLCHoklch(46.07% 0.166 267.4)
XYZxyz(12.0067, 9.1895, 43.7801)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DB3 #B39630
analogous
#308EB3 #304DB3 #5530B3
triadic
#304DB3 #B3304D #4DB330
tetradic
#304DB3 #B3308E #B39630 #30B355
square
#304DB3 #B3308E #B39630 #30B355
split-complementary
#304DB3 #B35530 #8EB330
monochromatic
#162352 #233883 #304DB3 #506CD0 #8095DD

Accessibility & contrast

On white

7.40
#304DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#304DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304DB3
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DB3#FFFFFF#000000##FFFFFF
##304DB31.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304db3;
/* rgb */ color: rgb(48, 77, 179);
/* oklch */ color: oklch(46.1% 0.166 267.4);
Tailwind
colors: {
  custom: {
    50: '#7a7ecb',
    500: '#304db3',
    950: '#000000',
  },
}
SCSS
$custom: #304db3;
$custom-light: #7a7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#304db3",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 179
  },
  "hsl": {
    "h": 226.718,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46071,
    "c": 0.16555,
    "h": 267.4
  },
  "luminance": 0.09191
}

Semantic roles & 50–950 ramp

primary
#304DB3
secondary
#C6B579
accent
#BF47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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