#304EAA#304EAA

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

Color values

HEX#304EAA
RGBrgb(48, 78, 170)
HSLhsl(225, 56%, 43%)
HSVhsv(225, 72%, 67%)
CMYKcmyk(71.8%, 54.1%, 0%, 33.3%)
CIE-LABlab(35.94, 21.21, -52.68)
CIE-LCHlch(35.94, 56.79, 291.93°)
OKLaboklab(45.55% -0.0089 -0.1516)
OKLCHoklch(45.55% 0.152 266.7)
XYZxyz(11.1965, 8.9783, 39.1653)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EAA #AA8C30
analogous
#308BAA #304EAA #4F30AA
triadic
#304EAA #AA304E #4EAA30
tetradic
#304EAA #AA308B #AA8C30 #30AA4F
square
#304EAA #AA308B #AA8C30 #30AA4F
split-complementary
#304EAA #AA4F30 #8BAA30
monochromatic
#15224B #23387A #304EAA #4B6BCC #7B92DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304EAA#FFFFFF#000000##FFFFFF
##304EAA1.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)
#085AAD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304eaa;
/* rgb */ color: rgb(48, 78, 170);
/* oklch */ color: oklch(45.6% 0.152 266.7);
Tailwind
colors: {
  custom: {
    50: '#787fc4',
    500: '#304eaa',
    950: '#000000',
  },
}
SCSS
$custom: #304eaa;
$custom-light: #787fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#304eaa",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 225.246,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45554,
    "c": 0.15185,
    "h": 266.7
  },
  "luminance": 0.08979
}

Semantic roles & 50–950 ramp

primary
#304EAA
secondary
#C2AF74
accent
#BA49DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #304EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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