#304FB3#304FB3

#304FB3 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.163 H 266.8°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#304FB3
RGBrgb(48, 79, 179)
HSLhsl(226, 58%, 45%)
HSVhsv(226, 73%, 70%)
CMYKcmyk(73.2%, 55.9%, 0%, 29.8%)
CIE-LABlab(36.88, 23.93, -56.50)
CIE-LCHlch(36.88, 61.36, 292.96°)
OKLaboklab(46.47% -0.0091 -0.1628)
OKLCHoklch(46.47% 0.163 266.8)
XYZxyz(12.1488, 9.4737, 43.8274)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FB3 #B39430
analogous
#3090B3 #304FB3 #5330B3
triadic
#304FB3 #B3304F #4FB330
tetradic
#304FB3 #B33090 #B39430 #30B353
square
#304FB3 #B33090 #B39430 #30B353
split-complementary
#304FB3 #B35330 #90B330
monochromatic
#162452 #233A83 #304FB3 #506ED0 #8096DD

Accessibility & contrast

On white

7.25
#304FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#304FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FB3
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FB3#FFFFFF#000000##FFFFFF
##304FB31.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #304fb3;
/* rgb */ color: rgb(48, 79, 179);
/* oklch */ color: oklch(46.5% 0.163 266.8);
Tailwind
colors: {
  custom: {
    50: '#7a7fca',
    500: '#304fb3',
    950: '#000000',
  },
}
SCSS
$custom: #304fb3;
$custom-light: #7a7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#304fb3",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 179
  },
  "hsl": {
    "h": 225.802,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46472,
    "c": 0.16305,
    "h": 266.8
  },
  "luminance": 0.09475
}

Semantic roles & 50–950 ramp

primary
#304FB3
secondary
#C6B479
accent
#BC47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #304FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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