#304AB5#304AB5

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

Color values

HEX#304AB5
RGBrgb(48, 74, 181)
HSLhsl(228, 58%, 45%)
HSVhsv(228, 73%, 71%)
CMYKcmyk(73.5%, 59.1%, 0%, 29%)
CIE-LABlab(35.72, 27.96, -59.57)
CIE-LCHlch(35.72, 65.81, 295.14°)
OKLaboklab(45.65% -0.0052 -0.1719)
OKLCHoklch(45.65% 0.172 268.3)
XYZxyz(12.0053, 8.8609, 44.7847)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AB5 #B59B30
analogous
#308CB5 #304AB5 #5930B5
triadic
#304AB5 #B5304A #4AB530
tetradic
#304AB5 #B5308C #B59B30 #30B559
square
#304AB5 #B5308C #B59B30 #30B559
split-complementary
#304AB5 #B55930 #8CB530
monochromatic
#162254 #233685 #304AB5 #516AD1 #8294DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304AB5#FFFFFF#000000##FFFFFF
##304AB51.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)
#005AB9
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304ab5;
/* rgb */ color: rgb(48, 74, 181);
/* oklch */ color: oklch(45.6% 0.172 268.3);
Tailwind
colors: {
  custom: {
    50: '#7b7ccc',
    500: '#304ab5',
    950: '#000000',
  },
}
SCSS
$custom: #304ab5;
$custom-light: #7b7ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#304ab5",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 181
  },
  "hsl": {
    "h": 228.271,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45648,
    "c": 0.172,
    "h": 268.3
  },
  "luminance": 0.08862
}

Semantic roles & 50–950 ramp

primary
#304AB5
secondary
#C7B87A
accent
#C346E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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