#304EA8#304EA8

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

Color values

HEX#304EA8
RGBrgb(48, 78, 168)
HSLhsl(225, 56%, 42%)
HSVhsv(225, 71%, 66%)
CMYKcmyk(71.4%, 53.6%, 0%, 34.1%)
CIE-LABlab(35.80, 20.46, -51.72)
CIE-LCHlch(35.80, 55.62, 291.58°)
OKLaboklab(45.4% -0.009 -0.1488)
OKLCHoklch(45.4% 0.149 266.5)
XYZxyz(11.0087, 8.9032, 38.1765)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EA8 #A88A30
analogous
#308AA8 #304EA8 #4E30A8
triadic
#304EA8 #A8304E #4EA830
tetradic
#304EA8 #A8308A #A88A30 #30A84E
square
#304EA8 #A8308A #A88A30 #30A84E
split-complementary
#304EA8 #A84E30 #8AA830
monochromatic
#152249 #223878 #304EA8 #4A6ACB #7A91D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304EA8#FFFFFF#000000##FFFFFF
##304EA81.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)
#0E5AAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304ea8;
/* rgb */ color: rgb(48, 78, 168);
/* oklch */ color: oklch(45.4% 0.149 266.5);
Tailwind
colors: {
  custom: {
    50: '#787fc2',
    500: '#304ea8',
    950: '#000000',
  },
}
SCSS
$custom: #304ea8;
$custom-light: #787fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#304ea8",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 225,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45398,
    "c": 0.14905,
    "h": 266.5
  },
  "luminance": 0.08904
}

Semantic roles & 50–950 ramp

primary
#304EA8
secondary
#C1AE73
accent
#B949DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #304EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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