#304EA5#304EA5

#304EA5 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.145 H 266.3°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#304EA5
RGBrgb(48, 78, 165)
HSLhsl(225, 55%, 42%)
HSVhsv(225, 71%, 65%)
CMYKcmyk(70.9%, 52.7%, 0%, 35.3%)
CIE-LABlab(35.58, 19.33, -50.28)
CIE-LCHlch(35.58, 53.87, 291.03°)
OKLaboklab(45.17% -0.0093 -0.1445)
OKLCHoklch(45.17% 0.145 266.3)
XYZxyz(10.7325, 8.7927, 36.7216)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EA5 #A58730
analogous
#3089A5 #304EA5 #4C30A5
triadic
#304EA5 #A5304E #4EA530
tetradic
#304EA5 #A53089 #A58730 #30A54C
square
#304EA5 #A53089 #A58730 #30A54C
split-complementary
#304EA5 #A54C30 #89A530
monochromatic
#142146 #223876 #304EA5 #486ACA #7890D8

Accessibility & contrast

On white

7.61
#304EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#304EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304EA5
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304EA5#FFFFFF#000000##FFFFFF
##304EA51.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1559A8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304ea5;
/* rgb */ color: rgb(48, 78, 165);
/* oklch */ color: oklch(45.2% 0.145 266.3);
Tailwind
colors: {
  custom: {
    50: '#777fc0',
    500: '#304ea5',
    950: '#000000',
  },
}
SCSS
$custom: #304ea5;
$custom-light: #777fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#304ea5",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 224.615,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45167,
    "c": 0.14483,
    "h": 266.3
  },
  "luminance": 0.08794
}

Semantic roles & 50–950 ramp

primary
#304EA5
secondary
#C0AC71
accent
#B84ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #304EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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