#304AB8#304AB8

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

Color values

HEX#304AB8
RGBrgb(48, 74, 184)
HSLhsl(229, 59%, 45%)
HSVhsv(229, 74%, 72%)
CMYKcmyk(73.9%, 59.8%, 0%, 27.8%)
CIE-LABlab(35.96, 29.07, -60.95)
CIE-LCHlch(35.96, 67.53, 295.50°)
OKLaboklab(45.9% -0.0051 -0.176)
OKLCHoklch(45.9% 0.176 268.3)
XYZxyz(12.3164, 8.9853, 46.4233)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AB8 #B89E30
analogous
#308EB8 #304AB8 #5A30B8
triadic
#304AB8 #B8304A #4AB830
tetradic
#304AB8 #B8308E #B89E30 #30B85A
square
#304AB8 #B8308E #B89E30 #30B85A
split-complementary
#304AB8 #B85A30 #8EB830
monochromatic
#172357 #233687 #304AB8 #536BD2 #8495DF

Accessibility & contrast

On white

7.51
#304AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304AB8
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AB8#FFFFFF#000000##FFFFFF
##304AB81.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#004EB6
Tritanopia (blue-blind)
#00667A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304ab8;
/* rgb */ color: rgb(48, 74, 184);
/* oklch */ color: oklch(45.9% 0.176 268.3);
Tailwind
colors: {
  custom: {
    50: '#7c7cce',
    500: '#304ab8',
    950: '#000000',
  },
}
SCSS
$custom: #304ab8;
$custom-light: #7c7cce;
$custom-dark: #000000;
JSON
{
  "hex": "#304ab8",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 184
  },
  "hsl": {
    "h": 228.529,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45902,
    "c": 0.17603,
    "h": 268.3
  },
  "luminance": 0.08987
}

Semantic roles & 50–950 ramp

primary
#304AB8
secondary
#C8B97C
accent
#C446E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #304AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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