#304BB6#304BB6

#304BB6 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.172 H 268.0°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#304BB6
RGBrgb(48, 75, 182)
HSLhsl(228, 58%, 45%)
HSVhsv(228, 74%, 71%)
CMYKcmyk(73.6%, 58.8%, 0%, 28.6%)
CIE-LABlab(36.05, 27.68, -59.61)
CIE-LCHlch(36.05, 65.72, 294.91°)
OKLaboklab(45.93% -0.0059 -0.172)
OKLCHoklch(45.93% 0.172 268)
XYZxyz(12.1756, 9.0366, 45.3495)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BB6 #B69B30
analogous
#308EB6 #304BB6 #5830B6
triadic
#304BB6 #B6304B #4BB630
tetradic
#304BB6 #B6308E #B69B30 #30B658
square
#304BB6 #B6308E #B69B30 #30B658
split-complementary
#304BB6 #B65830 #8EB630
monochromatic
#162355 #233786 #304BB6 #526CD1 #8295DE

Accessibility & contrast

On white

7.48
#304BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#304BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304BB6
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304BB6#FFFFFF#000000##FFFFFF
##304BB61.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304bb6;
/* rgb */ color: rgb(48, 75, 182);
/* oklch */ color: oklch(45.9% 0.172 268.0);
Tailwind
colors: {
  custom: {
    50: '#7b7dcd',
    500: '#304bb6',
    950: '#000000',
  },
}
SCSS
$custom: #304bb6;
$custom-light: #7b7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#304bb6",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 182
  },
  "hsl": {
    "h": 227.91,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45926,
    "c": 0.17211,
    "h": 268
  },
  "luminance": 0.09038
}

Semantic roles & 50–950 ramp

primary
#304BB6
secondary
#C7B87B
accent
#C246E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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