#304EB5#304EB5

#304EB5 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.4% C 0.167 H 267.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#304EB5
RGBrgb(48, 78, 181)
HSLhsl(226, 58%, 45%)
HSVhsv(226, 73%, 71%)
CMYKcmyk(73.5%, 56.9%, 0%, 29%)
CIE-LABlab(36.77, 25.34, -57.86)
CIE-LCHlch(36.77, 63.17, 293.65°)
OKLaboklab(46.43% -0.0082 -0.1668)
OKLCHoklch(46.43% 0.167 267.2)
XYZxyz(12.2809, 9.4120, 44.8766)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EB5 #B59730
analogous
#3091B5 #304EB5 #5430B5
triadic
#304EB5 #B5304E #4EB530
tetradic
#304EB5 #B53091 #B59730 #30B554
square
#304EB5 #B53091 #B59730 #30B554
split-complementary
#304EB5 #B55430 #91B530
monochromatic
#162454 #233985 #304EB5 #516ED1 #8296DE

Accessibility & contrast

On white

7.29
#304EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#304EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304EB5
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304EB5#FFFFFF#000000##FFFFFF
##304EB51.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304eb5;
/* rgb */ color: rgb(48, 78, 181);
/* oklch */ color: oklch(46.4% 0.167 267.2);
Tailwind
colors: {
  custom: {
    50: '#7b7fcc',
    500: '#304eb5',
    950: '#000000',
  },
}
SCSS
$custom: #304eb5;
$custom-light: #7b7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#304eb5",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 226.466,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46433,
    "c": 0.16704,
    "h": 267.2
  },
  "luminance": 0.09413
}

Semantic roles & 50–950 ramp

primary
#304EB5
secondary
#C7B67A
accent
#BE46E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #304EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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