#304DB6#304DB6

#304DB6 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.3% C 0.170 H 267.5°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#304DB6
RGBrgb(48, 77, 182)
HSLhsl(227, 58%, 45%)
HSVhsv(227, 74%, 71%)
CMYKcmyk(73.6%, 57.7%, 0%, 28.6%)
CIE-LABlab(36.58, 26.37, -58.76)
CIE-LCHlch(36.58, 64.40, 294.17°)
OKLaboklab(46.32% -0.0074 -0.1695)
OKLCHoklch(46.32% 0.17 267.5)
XYZxyz(12.3134, 9.3122, 45.3954)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DB6 #B69930
analogous
#3090B6 #304DB6 #5630B6
triadic
#304DB6 #B6304D #4DB630
tetradic
#304DB6 #B63090 #B69930 #30B656
square
#304DB6 #B63090 #B69930 #30B656
split-complementary
#304DB6 #B65630 #90B630
monochromatic
#162455 #233986 #304DB6 #526DD1 #8296DE

Accessibility & contrast

On white

7.34
#304DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#304DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304DB6
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DB6#FFFFFF#000000##FFFFFF
##304DB61.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBA
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304db6;
/* rgb */ color: rgb(48, 77, 182);
/* oklch */ color: oklch(46.3% 0.170 267.5);
Tailwind
colors: {
  custom: {
    50: '#7b7ecd',
    500: '#304db6',
    950: '#000000',
  },
}
SCSS
$custom: #304db6;
$custom-light: #7b7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#304db6",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 182
  },
  "hsl": {
    "h": 227.015,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46317,
    "c": 0.16964,
    "h": 267.5
  },
  "luminance": 0.09314
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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