#304FB4#304FB4

#304FB4 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.164 H 266.9°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#304FB4
RGBrgb(48, 79, 180)
HSLhsl(226, 58%, 45%)
HSVhsv(226, 73%, 71%)
CMYKcmyk(73.3%, 56.1%, 0%, 29.4%)
CIE-LABlab(36.96, 24.31, -56.96)
CIE-LCHlch(36.96, 61.93, 293.11°)
OKLaboklab(46.55% -0.009 -0.1642)
OKLCHoklch(46.55% 0.164 266.9)
XYZxyz(12.2503, 9.5143, 44.3620)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FB4 #B49530
analogous
#3091B4 #304FB4 #5330B4
triadic
#304FB4 #B4304F #4FB430
tetradic
#304FB4 #B43091 #B49530 #30B453
square
#304FB4 #B43091 #B49530 #30B453
split-complementary
#304FB4 #B45330 #91B430
monochromatic
#162553 #233A84 #304FB4 #516FD1 #8197DD

Accessibility & contrast

On white

7.23
#304FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#304FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FB4
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FB4#FFFFFF#000000##FFFFFF
##304FB41.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #304fb4;
/* rgb */ color: rgb(48, 79, 180);
/* oklch */ color: oklch(46.6% 0.164 266.9);
Tailwind
colors: {
  custom: {
    50: '#7a7fcb',
    500: '#304fb4',
    950: '#000000',
  },
}
SCSS
$custom: #304fb4;
$custom-light: #7a7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#304fb4",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 180
  },
  "hsl": {
    "h": 225.909,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46553,
    "c": 0.16443,
    "h": 266.9
  },
  "luminance": 0.09516
}

Semantic roles & 50–950 ramp

primary
#304FB4
secondary
#C6B479
accent
#BD47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #304FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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