#304CAE#304CAE

#304CAE is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.5% C 0.160 H 267.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#304CAE
RGBrgb(48, 76, 174)
HSLhsl(227, 57%, 44%)
HSVhsv(227, 72%, 68%)
CMYKcmyk(72.4%, 56.3%, 0%, 31.8%)
CIE-LABlab(35.70, 24.04, -55.46)
CIE-LCHlch(35.70, 60.44, 293.43°)
OKLaboklab(45.46% -0.0069 -0.1598)
OKLCHoklch(45.46% 0.16 267.5)
XYZxyz(11.4407, 8.8521, 41.1419)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CAE #AE9230
analogous
#308BAE #304CAE #5330AE
triadic
#304CAE #AE304C #4CAE30
tetradic
#304CAE #AE308B #AE9230 #30AE53
square
#304CAE #AE308B #AE9230 #30AE53
split-complementary
#304CAE #AE5330 #8BAE30
monochromatic
#16224E #23377E #304CAE #4D6ACE #7D92DB

Accessibility & contrast

On white

7.58
#304CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#304CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CAE
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CAE#FFFFFF#000000##FFFFFF
##304CAE1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304cae;
/* rgb */ color: rgb(48, 76, 174);
/* oklch */ color: oklch(45.5% 0.160 267.5);
Tailwind
colors: {
  custom: {
    50: '#797dc7',
    500: '#304cae',
    950: '#000000',
  },
}
SCSS
$custom: #304cae;
$custom-light: #797dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#304cae",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 174
  },
  "hsl": {
    "h": 226.667,
    "s": 56.757,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45464,
    "c": 0.15994,
    "h": 267.5
  },
  "luminance": 0.08853
}

Semantic roles & 50–950 ramp

primary
#304CAE
secondary
#C4B376
accent
#BE48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #304CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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