#304AB0#304AB0

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

Color values

HEX#304AB0
RGBrgb(48, 74, 176)
HSLhsl(228, 57%, 44%)
HSVhsv(228, 73%, 69%)
CMYKcmyk(72.7%, 58%, 0%, 31%)
CIE-LABlab(35.32, 26.10, -57.26)
CIE-LCHlch(35.32, 62.93, 294.51°)
OKLaboklab(45.23% -0.0053 -0.1651)
OKLCHoklch(45.23% 0.165 268.2)
XYZxyz(11.5015, 8.6593, 42.1311)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AB0 #B09630
analogous
#308AB0 #304AB0 #5630B0
triadic
#304AB0 #B0304A #4AB030
tetradic
#304AB0 #B0308A #B09630 #30B056
square
#304AB0 #B0308A #B09630 #30B056
split-complementary
#304AB0 #B05630 #8AB030
monochromatic
#162250 #233680 #304AB0 #4E68CF #7E91DC

Accessibility & contrast

On white

7.69
#304AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#304AB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AB0
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AB0#FFFFFF#000000##FFFFFF
##304AB01.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B3
Deuteranopia (green-blind)
#004DAE
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304ab0;
/* rgb */ color: rgb(48, 74, 176);
/* oklch */ color: oklch(45.2% 0.165 268.2);
Tailwind
colors: {
  custom: {
    50: '#7a7cc8',
    500: '#304ab0',
    950: '#000000',
  },
}
SCSS
$custom: #304ab0;
$custom-light: #7a7cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#304ab0",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 176
  },
  "hsl": {
    "h": 227.813,
    "s": 57.143,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45229,
    "c": 0.16519,
    "h": 268.2
  },
  "luminance": 0.08661
}

Semantic roles & 50–950 ramp

primary
#304AB0
secondary
#C5B577
accent
#C147E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #304AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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