#304FA4#304FA4

#304FA4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.3% C 0.142 H 265.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#304FA4
RGBrgb(48, 79, 164)
HSLhsl(224, 55%, 42%)
HSVhsv(224, 71%, 64%)
CMYKcmyk(70.7%, 51.8%, 0%, 35.7%)
CIE-LABlab(35.79, 18.29, -49.34)
CIE-LCHlch(35.79, 52.63, 290.34°)
OKLaboklab(45.3% -0.0103 -0.1418)
OKLCHoklch(45.3% 0.142 265.8)
XYZxyz(10.7134, 8.8996, 36.2679)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FA4 #A48530
analogous
#3089A4 #304FA4 #4B30A4
triadic
#304FA4 #A4304F #4FA430
tetradic
#304FA4 #A43089 #A48530 #30A44B
square
#304FA4 #A43089 #A48530 #30A44B
split-complementary
#304FA4 #A44B30 #89A430
monochromatic
#142145 #223875 #304FA4 #486AC9 #7791D7

Accessibility & contrast

On white

7.55
#304FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#304FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FA4
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FA4#FFFFFF#000000##FFFFFF
##304FA41.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5AA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304fa4;
/* rgb */ color: rgb(48, 79, 164);
/* oklch */ color: oklch(45.3% 0.142 265.8);
Tailwind
colors: {
  custom: {
    50: '#777fc0',
    500: '#304fa4',
    950: '#000000',
  },
}
SCSS
$custom: #304fa4;
$custom-light: #777fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#304fa4",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 223.966,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45302,
    "c": 0.14213,
    "h": 265.8
  },
  "luminance": 0.08901
}

Semantic roles & 50–950 ramp

primary
#304FA4
secondary
#BFAA70
accent
#B64ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #304FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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