#304BBC#304BBC

#304BBC is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.180 H 268.2°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#304BBC
RGBrgb(48, 75, 188)
HSLhsl(228, 59%, 46%)
HSVhsv(228, 74%, 74%)
CMYKcmyk(74.5%, 60.1%, 0%, 26.3%)
CIE-LABlab(36.54, 29.90, -62.36)
CIE-LCHlch(36.54, 69.15, 295.62°)
OKLaboklab(46.43% -0.0058 -0.1801)
OKLCHoklch(46.43% 0.18 268.2)
XYZxyz(12.8090, 9.2900, 48.6853)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BBC #BCA130
analogous
#3091BC #304BBC #5B30BC
triadic
#304BBC #BC304B #4BBC30
tetradic
#304BBC #BC3091 #BCA130 #30BC5B
square
#304BBC #BC3091 #BCA130 #30BC5B
split-complementary
#304BBC #BC5B30 #91BC30
monochromatic
#17245A #24388B #304BBC #556ED4 #8698E0

Accessibility & contrast

On white

7.35
#304BBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#304BBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304BBC
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304BBC#FFFFFF#000000##FFFFFF
##304BBC1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304bbc;
/* rgb */ color: rgb(48, 75, 188);
/* oklch */ color: oklch(46.4% 0.180 268.2);
Tailwind
colors: {
  custom: {
    50: '#7d7dd1',
    500: '#304bbc',
    950: '#000000',
  },
}
SCSS
$custom: #304bbc;
$custom-light: #7d7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#304bbc",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 188
  },
  "hsl": {
    "h": 228.429,
    "s": 59.322,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46435,
    "c": 0.18016,
    "h": 268.2
  },
  "luminance": 0.09291
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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