#304CB8#304CB8

#304CB8 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.3% C 0.174 H 267.8°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#304CB8
RGBrgb(48, 76, 184)
HSLhsl(228, 59%, 45%)
HSVhsv(228, 74%, 72%)
CMYKcmyk(73.9%, 58.7%, 0%, 27.8%)
CIE-LABlab(36.47, 27.76, -60.11)
CIE-LCHlch(36.47, 66.21, 294.79°)
OKLaboklab(46.29% -0.0066 -0.1735)
OKLCHoklch(46.29% 0.174 267.8)
XYZxyz(12.4521, 9.2566, 46.4686)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CB8 #B89C30
analogous
#3090B8 #304CB8 #5830B8
triadic
#304CB8 #B8304C #4CB830
tetradic
#304CB8 #B83090 #B89C30 #30B858
square
#304CB8 #B83090 #B89C30 #30B858
split-complementary
#304CB8 #B85830 #90B830
monochromatic
#172457 #233887 #304CB8 #536DD2 #8496DF

Accessibility & contrast

On white

7.36
#304CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#304CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CB8
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CB8#FFFFFF#000000##FFFFFF
##304CB81.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#0050B6
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304cb8;
/* rgb */ color: rgb(48, 76, 184);
/* oklch */ color: oklch(46.3% 0.174 267.8);
Tailwind
colors: {
  custom: {
    50: '#7c7dce',
    500: '#304cb8',
    950: '#000000',
  },
}
SCSS
$custom: #304cb8;
$custom-light: #7c7dce;
$custom-dark: #000000;
JSON
{
  "hex": "#304cb8",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 184
  },
  "hsl": {
    "h": 227.647,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46288,
    "c": 0.17358,
    "h": 267.8
  },
  "luminance": 0.09258
}

Semantic roles & 50–950 ramp

primary
#304CB8
secondary
#C8B87C
accent
#C246E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #304CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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