#304FA6#304FA6

#304FA6 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.5% C 0.145 H 266.0°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#304FA6
RGBrgb(48, 79, 166)
HSLhsl(224, 55%, 42%)
HSVhsv(224, 71%, 65%)
CMYKcmyk(71.1%, 52.4%, 0%, 34.9%)
CIE-LABlab(35.93, 19.05, -50.31)
CIE-LCHlch(35.93, 53.80, 290.73°)
OKLaboklab(45.45% -0.0101 -0.1446)
OKLCHoklch(45.45% 0.145 266)
XYZxyz(10.8954, 8.9724, 37.2266)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FA6 #A68730
analogous
#308AA6 #304FA6 #4C30A6
triadic
#304FA6 #A6304F #4FA630
tetradic
#304FA6 #A6308A #A68730 #30A64C
square
#304FA6 #A6308A #A68730 #30A64C
split-complementary
#304FA6 #A64C30 #8AA630
monochromatic
#152247 #223877 #304FA6 #496BCA #7891D8

Accessibility & contrast

On white

7.51
#304FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304FA6
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FA6#FFFFFF#000000##FFFFFF
##304FA61.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175AA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304fa6;
/* rgb */ color: rgb(48, 79, 166);
/* oklch */ color: oklch(45.5% 0.145 266.0);
Tailwind
colors: {
  custom: {
    50: '#777fc1',
    500: '#304fa6',
    950: '#000000',
  },
}
SCSS
$custom: #304fa6;
$custom-light: #777fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#304fa6",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 224.237,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45454,
    "c": 0.14496,
    "h": 266
  },
  "luminance": 0.08974
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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