#304AB2#304AB2

#304AB2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.168 H 268.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#304AB2
RGBrgb(48, 74, 178)
HSLhsl(228, 58%, 44%)
HSVhsv(228, 73%, 70%)
CMYKcmyk(73%, 58.4%, 0%, 30.2%)
CIE-LABlab(35.48, 26.85, -58.19)
CIE-LCHlch(35.48, 64.08, 294.77°)
OKLaboklab(45.4% -0.0052 -0.1678)
OKLCHoklch(45.4% 0.168 268.2)
XYZxyz(11.7008, 8.7391, 43.1810)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AB2 #B29830
analogous
#308BB2 #304AB2 #5730B2
triadic
#304AB2 #B2304A #4AB230
tetradic
#304AB2 #B2308B #B29830 #30B257
square
#304AB2 #B2308B #B29830 #30B257
split-complementary
#304AB2 #B25730 #8BB230
monochromatic
#162252 #233682 #304AB2 #5069D0 #8092DD

Accessibility & contrast

On white

7.64
#304AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#304AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AB2
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AB2#FFFFFF#000000##FFFFFF
##304AB21.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304ab2;
/* rgb */ color: rgb(48, 74, 178);
/* oklch */ color: oklch(45.4% 0.168 268.2);
Tailwind
colors: {
  custom: {
    50: '#7a7cca',
    500: '#304ab2',
    950: '#000000',
  },
}
SCSS
$custom: #304ab2;
$custom-light: #7a7cca;
$custom-dark: #000000;
JSON
{
  "hex": "#304ab2",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 228,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45395,
    "c": 0.16792,
    "h": 268.2
  },
  "luminance": 0.0874
}

Semantic roles & 50–950 ramp

primary
#304AB2
secondary
#C6B678
accent
#C247E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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