#304BBF#304BBF

#304BBF is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.7% C 0.184 H 268.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#304BBF
RGBrgb(48, 75, 191)
HSLhsl(229, 60%, 47%)
HSVhsv(229, 75%, 75%)
CMYKcmyk(74.9%, 60.7%, 0%, 25.1%)
CIE-LABlab(36.78, 31.00, -63.71)
CIE-LCHlch(36.78, 70.85, 295.95°)
OKLaboklab(46.69% -0.0058 -0.1841)
OKLCHoklch(46.69% 0.184 268.2)
XYZxyz(13.1357, 9.4207, 50.4062)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BBF #BFA430
analogous
#3093BF #304BBF #5C30BF
triadic
#304BBF #BF304B #4BBF30
tetradic
#304BBF #BF3093 #BFA430 #30BF5C
square
#304BBF #BF3093 #BFA430 #30BF5C
split-complementary
#304BBF #BF5C30 #93BF30
monochromatic
#17255D #24388E #304BBF #576FD5 #8899E1

Accessibility & contrast

On white

7.28
#304BBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304BBF
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304BBF#FFFFFF#000000##FFFFFF
##304BBF1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304bbf;
/* rgb */ color: rgb(48, 75, 191);
/* oklch */ color: oklch(46.7% 0.184 268.2);
Tailwind
colors: {
  custom: {
    50: '#7d7dd3',
    500: '#304bbf',
    950: '#000000',
  },
}
SCSS
$custom: #304bbf;
$custom-light: #7d7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#304bbf",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 191
  },
  "hsl": {
    "h": 228.671,
    "s": 59.833,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46694,
    "c": 0.18415,
    "h": 268.2
  },
  "luminance": 0.09422
}

Semantic roles & 50–950 ramp

primary
#304BBF
secondary
#CBBD80
accent
#C545E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #304BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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