#304DBD#304DBD

#304DBD is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.9% C 0.179 H 267.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#304DBD
RGBrgb(48, 77, 189)
HSLhsl(228, 59%, 46%)
HSVhsv(228, 75%, 74%)
CMYKcmyk(74.6%, 59.3%, 0%, 25.9%)
CIE-LABlab(37.13, 28.96, -61.97)
CIE-LCHlch(37.13, 68.41, 295.05°)
OKLaboklab(46.9% -0.0072 -0.1789)
OKLCHoklch(46.9% 0.179 267.7)
XYZxyz(13.0549, 9.6088, 49.3009)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DBD #BDA030
analogous
#3094BD #304DBD #5A30BD
triadic
#304DBD #BD304D #4DBD30
tetradic
#304DBD #BD3094 #BDA030 #30BD5A
square
#304DBD #BD3094 #BDA030 #30BD5A
split-complementary
#304DBD #BD5A30 #94BD30
monochromatic
#17255B #24398C #304DBD #5670D4 #8799E0

Accessibility & contrast

On white

7.19
#304DBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#304DBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304DBD
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DBD#FFFFFF#000000##FFFFFF
##304DBD1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #304dbd;
/* rgb */ color: rgb(48, 77, 189);
/* oklch */ color: oklch(46.9% 0.179 267.7);
Tailwind
colors: {
  custom: {
    50: '#7d7ed2',
    500: '#304dbd',
    950: '#000000',
  },
}
SCSS
$custom: #304dbd;
$custom-light: #7d7ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#304dbd",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 189
  },
  "hsl": {
    "h": 227.66,
    "s": 59.494,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46903,
    "c": 0.17906,
    "h": 267.7
  },
  "luminance": 0.0961
}

Semantic roles & 50–950 ramp

primary
#304DBD
secondary
#CABB7F
accent
#C245E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #304DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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