#304FB9#304FB9

#304FB9 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.171 H 267.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#304FB9
RGBrgb(48, 79, 185)
HSLhsl(226, 59%, 46%)
HSVhsv(226, 74%, 73%)
CMYKcmyk(74.1%, 57.3%, 0%, 27.5%)
CIE-LABlab(37.34, 26.17, -59.29)
CIE-LCHlch(37.34, 64.81, 293.82°)
OKLaboklab(46.96% -0.0088 -0.171)
OKLCHoklch(46.96% 0.171 267.1)
XYZxyz(12.7688, 9.7218, 47.0931)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FB9 #B99A30
analogous
#3093B9 #304FB9 #5530B9
triadic
#304FB9 #B9304F #4FB930
tetradic
#304FB9 #B93093 #B99A30 #30B955
square
#304FB9 #B93093 #B99A30 #30B955
split-complementary
#304FB9 #B95530 #93B930
monochromatic
#172558 #233A88 #304FB9 #5470D3 #8499DF

Accessibility & contrast

On white

7.13
#304FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#304FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FB9
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FB9#FFFFFF#000000##FFFFFF
##304FB91.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #304fb9;
/* rgb */ color: rgb(48, 79, 185);
/* oklch */ color: oklch(47.0% 0.171 267.1);
Tailwind
colors: {
  custom: {
    50: '#7c7fcf',
    500: '#304fb9',
    950: '#000000',
  },
}
SCSS
$custom: #304fb9;
$custom-light: #7c7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#304fb9",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 185
  },
  "hsl": {
    "h": 226.423,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4696,
    "c": 0.17123,
    "h": 267.1
  },
  "luminance": 0.09723
}

Semantic roles & 50–950 ramp

primary
#304FB9
secondary
#C9B77C
accent
#BF46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #304FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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