#304CBB#304CBB

#304CBB is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.178 H 267.9°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#304CBB
RGBrgb(48, 76, 187)
HSLhsl(228, 59%, 46%)
HSVhsv(228, 74%, 73%)
CMYKcmyk(74.3%, 59.4%, 0%, 26.7%)
CIE-LABlab(36.71, 28.88, -61.48)
CIE-LCHlch(36.71, 67.92, 295.16°)
OKLaboklab(46.54% -0.0065 -0.1775)
OKLCHoklch(46.54% 0.178 267.9)
XYZxyz(12.7699, 9.3837, 48.1423)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CBB #BB9F30
analogous
#3091BB #304CBB #5930BB
triadic
#304CBB #BB304C #4CBB30
tetradic
#304CBB #BB3091 #BB9F30 #30BB59
square
#304CBB #BB3091 #BB9F30 #30BB59
split-complementary
#304CBB #BB5930 #91BB30
monochromatic
#17245A #23388A #304CBB #556ED3 #8698E0

Accessibility & contrast

On white

7.30
#304CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304CBB
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CBB#FFFFFF#000000##FFFFFF
##304CBB1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304cbb;
/* rgb */ color: rgb(48, 76, 187);
/* oklch */ color: oklch(46.5% 0.178 267.9);
Tailwind
colors: {
  custom: {
    50: '#7c7dd0',
    500: '#304cbb',
    950: '#000000',
  },
}
SCSS
$custom: #304cbb;
$custom-light: #7c7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#304cbb",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 227.914,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46541,
    "c": 0.17761,
    "h": 267.9
  },
  "luminance": 0.09385
}

Semantic roles & 50–950 ramp

primary
#304CBB
secondary
#C9BA7D
accent
#C345E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #304CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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