#304CBD#304CBD

#304CBD is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.7% C 0.180 H 267.9°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#304CBD
RGBrgb(48, 76, 189)
HSLhsl(228, 59%, 46%)
HSVhsv(228, 75%, 74%)
CMYKcmyk(74.6%, 59.8%, 0%, 25.9%)
CIE-LABlab(36.87, 29.61, -62.39)
CIE-LCHlch(36.87, 69.06, 295.39°)
OKLaboklab(46.71% -0.0065 -0.1802)
OKLCHoklch(46.71% 0.18 267.9)
XYZxyz(12.9855, 9.4700, 49.2778)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CBD #BDA130
analogous
#3093BD #304CBD #5B30BD
triadic
#304CBD #BD304C #4CBD30
tetradic
#304CBD #BD3093 #BDA130 #30BD5B
square
#304CBD #BD3093 #BDA130 #30BD5B
split-complementary
#304CBD #BD5B30 #93BD30
monochromatic
#17255B #24388C #304CBD #566FD4 #8799E0

Accessibility & contrast

On white

7.26
#304CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#304CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CBD
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CBD#FFFFFF#000000##FFFFFF
##304CBD1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304cbd;
/* rgb */ color: rgb(48, 76, 189);
/* oklch */ color: oklch(46.7% 0.180 267.9);
Tailwind
colors: {
  custom: {
    50: '#7d7dd2',
    500: '#304cbd',
    950: '#000000',
  },
}
SCSS
$custom: #304cbd;
$custom-light: #7d7dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#304cbd",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 189
  },
  "hsl": {
    "h": 228.085,
    "s": 59.494,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46711,
    "c": 0.18029,
    "h": 267.9
  },
  "luminance": 0.09471
}

Semantic roles & 50–950 ramp

primary
#304CBD
secondary
#CABB7F
accent
#C345E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #304CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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