#304AB9#304AB9

#304AB9 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.0% C 0.177 H 268.3°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#304AB9
RGBrgb(48, 74, 185)
HSLhsl(229, 59%, 46%)
HSVhsv(229, 74%, 73%)
CMYKcmyk(74.1%, 60%, 0%, 27.5%)
CIE-LABlab(36.04, 29.44, -61.41)
CIE-LCHlch(36.04, 68.10, 295.61°)
OKLaboklab(45.99% -0.0051 -0.1773)
OKLCHoklch(45.99% 0.177 268.3)
XYZxyz(12.4216, 9.0274, 46.9773)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AB9 #B99F30
analogous
#308EB9 #304AB9 #5A30B9
triadic
#304AB9 #B9304A #4AB930
tetradic
#304AB9 #B9308E #B99F30 #30B95A
square
#304AB9 #B9308E #B99F30 #30B95A
split-complementary
#304AB9 #B95A30 #8EB930
monochromatic
#172358 #233788 #304AB9 #546CD3 #8495DF

Accessibility & contrast

On white

7.48
#304AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#304AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AB9
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AB9#FFFFFF#000000##FFFFFF
##304AB91.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#00667A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304ab9;
/* rgb */ color: rgb(48, 74, 185);
/* oklch */ color: oklch(46.0% 0.177 268.3);
Tailwind
colors: {
  custom: {
    50: '#7c7ccf',
    500: '#304ab9',
    950: '#000000',
  },
}
SCSS
$custom: #304ab9;
$custom-light: #7c7ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#304ab9",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 185
  },
  "hsl": {
    "h": 228.613,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45988,
    "c": 0.17737,
    "h": 268.3
  },
  "luminance": 0.09029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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