#304CBF#304CBF

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

Color values

HEX#304CBF
RGBrgb(48, 76, 191)
HSLhsl(228, 60%, 47%)
HSVhsv(228, 75%, 75%)
CMYKcmyk(74.9%, 60.2%, 0%, 25.1%)
CIE-LABlab(37.04, 30.35, -63.30)
CIE-LCHlch(37.04, 70.20, 295.62°)
OKLaboklab(46.88% -0.0065 -0.1828)
OKLCHoklch(46.88% 0.183 268)
XYZxyz(13.2041, 9.5574, 50.4290)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CBF #BFA330
analogous
#3094BF #304CBF #5C30BF
triadic
#304CBF #BF304C #4CBF30
tetradic
#304CBF #BF3094 #BFA330 #30BF5C
square
#304CBF #BF3094 #BFA330 #30BF5C
split-complementary
#304CBF #BF5C30 #94BF30
monochromatic
#17255D #24398E #304CBF #5770D5 #889AE1

Accessibility & contrast

On white

7.21
#304CBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#304CBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CBF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CBF#FFFFFF#000000##FFFFFF
##304CBF1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#00697E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #304cbf;
/* rgb */ color: rgb(48, 76, 191);
/* oklch */ color: oklch(46.9% 0.183 268.0);
Tailwind
colors: {
  custom: {
    50: '#7d7dd3',
    500: '#304cbf',
    950: '#000000',
  },
}
SCSS
$custom: #304cbf;
$custom-light: #7d7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#304cbf",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 191
  },
  "hsl": {
    "h": 228.252,
    "s": 59.833,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46883,
    "c": 0.18294,
    "h": 268
  },
  "luminance": 0.09559
}

Semantic roles & 50–950 ramp

primary
#304CBF
secondary
#CBBC80
accent
#C445E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #304CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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