#304AB6#304AB6

#304AB6 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.7% C 0.173 H 268.3°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#304AB6
RGBrgb(48, 74, 182)
HSLhsl(228, 58%, 45%)
HSVhsv(228, 74%, 71%)
CMYKcmyk(73.6%, 59.3%, 0%, 28.6%)
CIE-LABlab(35.80, 28.33, -60.03)
CIE-LCHlch(35.80, 66.38, 295.26°)
OKLaboklab(45.73% -0.0051 -0.1733)
OKLCHoklch(45.73% 0.173 268.3)
XYZxyz(12.1083, 8.9021, 45.3270)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AB6 #B69C30
analogous
#308DB6 #304AB6 #5930B6
triadic
#304AB6 #B6304A #4AB630
tetradic
#304AB6 #B6308D #B69C30 #30B659
square
#304AB6 #B6308D #B69C30 #30B659
split-complementary
#304AB6 #B65930 #8DB630
monochromatic
#162355 #233686 #304AB6 #526BD1 #8294DE

Accessibility & contrast

On white

7.55
#304AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#304AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AB6
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AB6#FFFFFF#000000##FFFFFF
##304AB61.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304ab6;
/* rgb */ color: rgb(48, 74, 182);
/* oklch */ color: oklch(45.7% 0.173 268.3);
Tailwind
colors: {
  custom: {
    50: '#7b7ccd',
    500: '#304ab6',
    950: '#000000',
  },
}
SCSS
$custom: #304ab6;
$custom-light: #7b7ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#304ab6",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 182
  },
  "hsl": {
    "h": 228.358,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45732,
    "c": 0.17335,
    "h": 268.3
  },
  "luminance": 0.08903
}

Semantic roles & 50–950 ramp

primary
#304AB6
secondary
#C7B87B
accent
#C346E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #304AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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