#304FA3#304FA3

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

Color values

HEX#304FA3
RGBrgb(48, 79, 163)
HSLhsl(224, 55%, 41%)
HSVhsv(224, 71%, 64%)
CMYKcmyk(70.6%, 51.5%, 0%, 36.1%)
CIE-LABlab(35.72, 17.92, -48.86)
CIE-LCHlch(35.72, 52.04, 290.14°)
OKLaboklab(45.23% -0.0104 -0.1403)
OKLCHoklch(45.23% 0.141 265.8)
XYZxyz(10.6235, 8.8636, 35.7942)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FA3 #A38430
analogous
#3089A3 #304FA3 #4B30A3
triadic
#304FA3 #A3304F #4FA330
tetradic
#304FA3 #A33089 #A38430 #30A34B
square
#304FA3 #A33089 #A38430 #30A34B
split-complementary
#304FA3 #A34B30 #89A330
monochromatic
#142144 #223874 #304FA3 #476AC9 #7791D7

Accessibility & contrast

On white

7.57
#304FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#304FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FA3
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FA3#FFFFFF#000000##FFFFFF
##304FA31.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5AA6
Deuteranopia (green-blind)
#004FA1
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304fa3;
/* rgb */ color: rgb(48, 79, 163);
/* oklch */ color: oklch(45.2% 0.141 265.8);
Tailwind
colors: {
  custom: {
    50: '#777fbf',
    500: '#304fa3',
    950: '#000000',
  },
}
SCSS
$custom: #304fa3;
$custom-light: #777fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#304fa3",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 163
  },
  "hsl": {
    "h": 223.826,
    "s": 54.502,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45227,
    "c": 0.14071,
    "h": 265.8
  },
  "luminance": 0.08865
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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