#304EA7#304EA7

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

Color values

HEX#304EA7
RGBrgb(48, 78, 167)
HSLhsl(225, 55%, 42%)
HSVhsv(225, 71%, 65%)
CMYKcmyk(71.3%, 53.3%, 0%, 34.5%)
CIE-LABlab(35.73, 20.09, -51.24)
CIE-LCHlch(35.73, 55.04, 291.40°)
OKLaboklab(45.32% -0.0091 -0.1474)
OKLCHoklch(45.32% 0.148 266.5)
XYZxyz(10.9159, 8.8661, 37.6878)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EA7 #A78930
analogous
#308AA7 #304EA7 #4E30A7
triadic
#304EA7 #A7304E #4EA730
tetradic
#304EA7 #A7308A #A78930 #30A74E
square
#304EA7 #A7308A #A78930 #30A74E
split-complementary
#304EA7 #A74E30 #8AA730
monochromatic
#152248 #223877 #304EA7 #496ACB #7991D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304EA7#FFFFFF#000000##FFFFFF
##304EA71.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)
#115AAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304ea7;
/* rgb */ color: rgb(48, 78, 167);
/* oklch */ color: oklch(45.3% 0.148 266.5);
Tailwind
colors: {
  custom: {
    50: '#787fc2',
    500: '#304ea7',
    950: '#000000',
  },
}
SCSS
$custom: #304ea7;
$custom-light: #787fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#304ea7",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 224.874,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4532,
    "c": 0.14765,
    "h": 266.5
  },
  "luminance": 0.08867
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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