#304FA8#304FA8

#304FA8 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.148 H 266.2°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#304FA8
RGBrgb(48, 79, 168)
HSLhsl(225, 56%, 42%)
HSVhsv(225, 71%, 66%)
CMYKcmyk(71.4%, 53%, 0%, 34.1%)
CIE-LABlab(36.07, 19.80, -51.28)
CIE-LCHlch(36.07, 54.97, 291.11°)
OKLaboklab(45.61% -0.0099 -0.1474)
OKLCHoklch(45.61% 0.148 266.2)
XYZxyz(11.0803, 9.0464, 38.2004)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FA8 #A88930
analogous
#308BA8 #304FA8 #4D30A8
triadic
#304FA8 #A8304F #4FA830
tetradic
#304FA8 #A8308B #A88930 #30A84D
square
#304FA8 #A8308B #A88930 #30A84D
split-complementary
#304FA8 #A84D30 #8BA830
monochromatic
#152249 #223978 #304FA8 #4A6BCB #7A92D9

Accessibility & contrast

On white

7.47
#304FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#304FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FA8
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FA8#FFFFFF#000000##FFFFFF
##304FA81.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135BAB
Deuteranopia (green-blind)
#0050A6
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304fa8;
/* rgb */ color: rgb(48, 79, 168);
/* oklch */ color: oklch(45.6% 0.148 266.2);
Tailwind
colors: {
  custom: {
    50: '#787fc2',
    500: '#304fa8',
    950: '#000000',
  },
}
SCSS
$custom: #304fa8;
$custom-light: #787fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#304fa8",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 224.5,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45607,
    "c": 0.14778,
    "h": 266.2
  },
  "luminance": 0.09047
}

Semantic roles & 50–950 ramp

primary
#304FA8
secondary
#C1AD73
accent
#B849DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #304FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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