#304FAE#304FAE

#304FAE is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.156 H 266.6°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#304FAE
RGBrgb(48, 79, 174)
HSLhsl(225, 57%, 44%)
HSVhsv(225, 72%, 68%)
CMYKcmyk(72.4%, 54.6%, 0%, 31.8%)
CIE-LABlab(36.51, 22.06, -54.14)
CIE-LCHlch(36.51, 58.46, 292.16°)
OKLaboklab(46.07% -0.0094 -0.1559)
OKLCHoklch(46.07% 0.156 266.6)
XYZxyz(11.6522, 9.2751, 41.2124)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FAE #AE8F30
analogous
#308EAE #304FAE #5030AE
triadic
#304FAE #AE304F #4FAE30
tetradic
#304FAE #AE308E #AE8F30 #30AE50
square
#304FAE #AE308E #AE8F30 #30AE50
split-complementary
#304FAE #AE5030 #8EAE30
monochromatic
#16234E #23397E #304FAE #4D6DCE #7D94DB

Accessibility & contrast

On white

7.36
#304FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#304FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FAE
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FAE#FFFFFF#000000##FFFFFF
##304FAE1.007.362.867.36
#FFFFFF7.361.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB1
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304fae;
/* rgb */ color: rgb(48, 79, 174);
/* oklch */ color: oklch(46.1% 0.156 266.6);
Tailwind
colors: {
  custom: {
    50: '#797fc7',
    500: '#304fae',
    950: '#000000',
  },
}
SCSS
$custom: #304fae;
$custom-light: #797fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#304fae",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 174
  },
  "hsl": {
    "h": 225.238,
    "s": 56.757,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46074,
    "c": 0.15615,
    "h": 266.6
  },
  "luminance": 0.09276
}

Semantic roles & 50–950 ramp

primary
#304FAE
secondary
#C4B176
accent
#BB48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #304FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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