#304AB7#304AB7

#304AB7 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.8% C 0.175 H 268.3°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#304AB7
RGBrgb(48, 74, 183)
HSLhsl(228, 58%, 45%)
HSVhsv(228, 74%, 72%)
CMYKcmyk(73.8%, 59.6%, 0%, 28.2%)
CIE-LABlab(35.88, 28.70, -60.49)
CIE-LCHlch(35.88, 66.96, 295.38°)
OKLaboklab(45.82% -0.0051 -0.1746)
OKLCHoklch(45.82% 0.175 268.3)
XYZxyz(12.2120, 8.9435, 45.8732)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AB7 #B79D30
analogous
#308EB7 #304AB7 #5930B7
triadic
#304AB7 #B7304A #4AB730
tetradic
#304AB7 #B7308E #B79D30 #30B759
square
#304AB7 #B7308E #B79D30 #30B759
split-complementary
#304AB7 #B75930 #8EB730
monochromatic
#172356 #233687 #304AB7 #526BD2 #8395DE

Accessibility & contrast

On white

7.53
#304AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304AB7
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AB7#FFFFFF#000000##FFFFFF
##304AB71.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304ab7;
/* rgb */ color: rgb(48, 74, 183);
/* oklch */ color: oklch(45.8% 0.175 268.3);
Tailwind
colors: {
  custom: {
    50: '#7b7ccd',
    500: '#304ab7',
    950: '#000000',
  },
}
SCSS
$custom: #304ab7;
$custom-light: #7b7ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#304ab7",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 183
  },
  "hsl": {
    "h": 228.444,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45817,
    "c": 0.1747,
    "h": 268.3
  },
  "luminance": 0.08945
}

Semantic roles & 50–950 ramp

primary
#304AB7
secondary
#C8B97B
accent
#C446E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #304AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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