#304EA9#304EA9

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

Color values

HEX#304EA9
RGBrgb(48, 78, 169)
HSLhsl(225, 56%, 43%)
HSVhsv(225, 72%, 66%)
CMYKcmyk(71.6%, 53.8%, 0%, 33.7%)
CIE-LABlab(35.87, 20.84, -52.20)
CIE-LCHlch(35.87, 56.21, 291.76°)
OKLaboklab(45.48% -0.0089 -0.1502)
OKLCHoklch(45.48% 0.15 266.6)
XYZxyz(11.1022, 8.9406, 38.6690)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EA9 #A98B30
analogous
#308AA9 #304EA9 #4F30A9
triadic
#304EA9 #A9304E #4EA930
tetradic
#304EA9 #A9308A #A98B30 #30A94F
square
#304EA9 #A9308A #A98B30 #30A94F
split-complementary
#304EA9 #A94F30 #8AA930
monochromatic
#15224A #223879 #304EA9 #4A6BCC #7A92D9

Accessibility & contrast

On white

7.53
#304EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#304EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304EA9
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304EA9#FFFFFF#000000##FFFFFF
##304EA91.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5AAC
Deuteranopia (green-blind)
#004FA7
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304ea9;
/* rgb */ color: rgb(48, 78, 169);
/* oklch */ color: oklch(45.5% 0.150 266.6);
Tailwind
colors: {
  custom: {
    50: '#787fc3',
    500: '#304ea9',
    950: '#000000',
  },
}
SCSS
$custom: #304ea9;
$custom-light: #787fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#304ea9",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 169
  },
  "hsl": {
    "h": 225.124,
    "s": 55.76,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45476,
    "c": 0.15046,
    "h": 266.6
  },
  "luminance": 0.08942
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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