#304CB2#304CB2

#304CB2 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.165 H 267.7°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#304CB2
RGBrgb(48, 76, 178)
HSLhsl(227, 58%, 44%)
HSVhsv(227, 73%, 70%)
CMYKcmyk(73%, 57.3%, 0%, 30.2%)
CIE-LABlab(36.00, 25.53, -57.33)
CIE-LCHlch(36.00, 62.76, 294.01°)
OKLaboklab(45.79% -0.0068 -0.1653)
OKLCHoklch(45.79% 0.165 267.7)
XYZxyz(11.8365, 9.0104, 43.2262)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CB2 #B29630
analogous
#308DB2 #304CB2 #5530B2
triadic
#304CB2 #B2304C #4CB230
tetradic
#304CB2 #B2308D #B29630 #30B255
square
#304CB2 #B2308D #B29630 #30B255
split-complementary
#304CB2 #B25530 #8DB230
monochromatic
#162352 #233782 #304CB2 #506BD0 #8094DD

Accessibility & contrast

On white

7.49
#304CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#304CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CB2
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CB2#FFFFFF#000000##FFFFFF
##304CB21.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304cb2;
/* rgb */ color: rgb(48, 76, 178);
/* oklch */ color: oklch(45.8% 0.165 267.7);
Tailwind
colors: {
  custom: {
    50: '#7a7dca',
    500: '#304cb2',
    950: '#000000',
  },
}
SCSS
$custom: #304cb2;
$custom-light: #7a7dca;
$custom-dark: #000000;
JSON
{
  "hex": "#304cb2",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 227.077,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4579,
    "c": 0.16544,
    "h": 267.7
  },
  "luminance": 0.09012
}

Semantic roles & 50–950 ramp

primary
#304CB2
secondary
#C6B578
accent
#C047E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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