#304AAE#304AAE

#304AAE is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.1% C 0.162 H 268.1°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#304AAE
RGBrgb(48, 74, 174)
HSLhsl(228, 57%, 44%)
HSVhsv(228, 72%, 68%)
CMYKcmyk(72.4%, 57.5%, 0%, 31.8%)
CIE-LABlab(35.16, 25.36, -56.32)
CIE-LCHlch(35.16, 61.77, 294.24°)
OKLaboklab(45.06% -0.0054 -0.1624)
OKLCHoklch(45.06% 0.162 268.1)
XYZxyz(11.3050, 8.5808, 41.0967)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AAE #AE9430
analogous
#3089AE #304AAE #5530AE
triadic
#304AAE #AE304A #4AAE30
tetradic
#304AAE #AE3089 #AE9430 #30AE55
square
#304AAE #AE3089 #AE9430 #30AE55
split-complementary
#304AAE #AE5530 #89AE30
monochromatic
#16214E #23367E #304AAE #4D68CE #7D91DB

Accessibility & contrast

On white

7.73
#304AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#304AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AAE
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AAE#FFFFFF#000000##FFFFFF
##304AAE1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304aae;
/* rgb */ color: rgb(48, 74, 174);
/* oklch */ color: oklch(45.1% 0.162 268.1);
Tailwind
colors: {
  custom: {
    50: '#797cc7',
    500: '#304aae',
    950: '#000000',
  },
}
SCSS
$custom: #304aae;
$custom-light: #797cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#304aae",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 174
  },
  "hsl": {
    "h": 227.619,
    "s": 56.757,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45063,
    "c": 0.16246,
    "h": 268.1
  },
  "luminance": 0.08582
}

Semantic roles & 50–950 ramp

primary
#304AAE
secondary
#C4B476
accent
#C148E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #304AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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