#304DAE#304DAE

#304DAE is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.159 H 267.2°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#304DAE
RGBrgb(48, 77, 174)
HSLhsl(226, 57%, 44%)
HSVhsv(226, 72%, 68%)
CMYKcmyk(72.4%, 55.7%, 0%, 31.8%)
CIE-LABlab(35.97, 23.38, -55.02)
CIE-LCHlch(35.97, 59.78, 293.02°)
OKLaboklab(45.67% -0.0077 -0.1585)
OKLCHoklch(45.67% 0.159 267.2)
XYZxyz(11.5101, 8.9909, 41.1650)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DAE #AE9130
analogous
#308CAE #304DAE #5230AE
triadic
#304DAE #AE304D #4DAE30
tetradic
#304DAE #AE308C #AE9130 #30AE52
square
#304DAE #AE308C #AE9130 #30AE52
split-complementary
#304DAE #AE5230 #8CAE30
monochromatic
#16234E #23387E #304DAE #4D6BCE #7D93DB

Accessibility & contrast

On white

7.50
#304DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304DAE
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DAE#FFFFFF#000000##FFFFFF
##304DAE1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304dae;
/* rgb */ color: rgb(48, 77, 174);
/* oklch */ color: oklch(45.7% 0.159 267.2);
Tailwind
colors: {
  custom: {
    50: '#797ec7',
    500: '#304dae',
    950: '#000000',
  },
}
SCSS
$custom: #304dae;
$custom-light: #797ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#304dae",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 174
  },
  "hsl": {
    "h": 226.19,
    "s": 56.757,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45666,
    "c": 0.15868,
    "h": 267.2
  },
  "luminance": 0.08992
}

Semantic roles & 50–950 ramp

primary
#304DAE
secondary
#C4B276
accent
#BD48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #304DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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