#304FA5#304FA5

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

Color values

HEX#304FA5
RGBrgb(48, 79, 165)
HSLhsl(224, 55%, 42%)
HSVhsv(224, 71%, 65%)
CMYKcmyk(70.9%, 52.1%, 0%, 35.3%)
CIE-LABlab(35.86, 18.67, -49.83)
CIE-LCHlch(35.86, 53.21, 290.54°)
OKLaboklab(45.38% -0.0102 -0.1432)
OKLCHoklch(45.38% 0.144 265.9)
XYZxyz(10.8041, 8.9359, 36.7454)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FA5 #A58630
analogous
#308AA5 #304FA5 #4C30A5
triadic
#304FA5 #A5304F #4FA530
tetradic
#304FA5 #A5308A #A58630 #30A54C
square
#304FA5 #A5308A #A58630 #30A54C
split-complementary
#304FA5 #A54C30 #8AA530
monochromatic
#142246 #223876 #304FA5 #486BCA #7891D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304FA5#FFFFFF#000000##FFFFFF
##304FA51.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)
#195AA8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304fa5;
/* rgb */ color: rgb(48, 79, 165);
/* oklch */ color: oklch(45.4% 0.144 265.9);
Tailwind
colors: {
  custom: {
    50: '#777fc0',
    500: '#304fa5',
    950: '#000000',
  },
}
SCSS
$custom: #304fa5;
$custom-light: #777fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#304fa5",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 224.103,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45378,
    "c": 0.14355,
    "h": 265.9
  },
  "luminance": 0.08937
}

Semantic roles & 50–950 ramp

primary
#304FA5
secondary
#C0AB71
accent
#B74ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #304FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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