#304FB0#304FB0

#304FB0 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.159 H 266.7°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#304FB0
RGBrgb(48, 79, 176)
HSLhsl(225, 57%, 44%)
HSVhsv(225, 73%, 69%)
CMYKcmyk(72.7%, 55.1%, 0%, 31%)
CIE-LABlab(36.66, 22.81, -55.09)
CIE-LCHlch(36.66, 59.62, 292.49°)
OKLaboklab(46.23% -0.0092 -0.1587)
OKLCHoklch(46.23% 0.159 266.7)
XYZxyz(11.8486, 9.3537, 42.2469)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FB0 #B09130
analogous
#308FB0 #304FB0 #5130B0
triadic
#304FB0 #B0304F #4FB030
tetradic
#304FB0 #B0308F #B09130 #30B051
square
#304FB0 #B0308F #B09130 #30B051
split-complementary
#304FB0 #B05130 #8FB030
monochromatic
#162450 #233980 #304FB0 #4E6DCF #7E95DC

Accessibility & contrast

On white

7.31
#304FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#304FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FB0
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FB0#FFFFFF#000000##FFFFFF
##304FB01.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB3
Deuteranopia (green-blind)
#0051AE
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304fb0;
/* rgb */ color: rgb(48, 79, 176);
/* oklch */ color: oklch(46.2% 0.159 266.7);
Tailwind
colors: {
  custom: {
    50: '#7a7fc8',
    500: '#304fb0',
    950: '#000000',
  },
}
SCSS
$custom: #304fb0;
$custom-light: #7a7fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#304fb0",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 176
  },
  "hsl": {
    "h": 225.469,
    "s": 57.143,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46232,
    "c": 0.15892,
    "h": 266.7
  },
  "luminance": 0.09355
}

Semantic roles & 50–950 ramp

primary
#304FB0
secondary
#C5B277
accent
#BB47E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #304FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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