#304BB5#304BB5

#304BB5 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.171 H 268.0°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#304BB5
RGBrgb(48, 75, 181)
HSLhsl(228, 58%, 45%)
HSVhsv(228, 73%, 71%)
CMYKcmyk(73.5%, 58.6%, 0%, 29%)
CIE-LABlab(35.98, 27.30, -59.15)
CIE-LCHlch(35.98, 65.15, 294.78°)
OKLaboklab(45.84% -0.0059 -0.1707)
OKLCHoklch(45.84% 0.171 268)
XYZxyz(12.0726, 8.9955, 44.8071)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BB5 #B59A30
analogous
#308DB5 #304BB5 #5830B5
triadic
#304BB5 #B5304B #4BB530
tetradic
#304BB5 #B5308D #B59A30 #30B558
square
#304BB5 #B5308D #B59A30 #30B558
split-complementary
#304BB5 #B55830 #8DB530
monochromatic
#162354 #233785 #304BB5 #516BD1 #8294DE

Accessibility & contrast

On white

7.50
#304BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#304BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304BB5
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304BB5#FFFFFF#000000##FFFFFF
##304BB51.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304bb5;
/* rgb */ color: rgb(48, 75, 181);
/* oklch */ color: oklch(45.8% 0.171 268.0);
Tailwind
colors: {
  custom: {
    50: '#7b7dcc',
    500: '#304bb5',
    950: '#000000',
  },
}
SCSS
$custom: #304bb5;
$custom-light: #7b7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#304bb5",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 227.82,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45842,
    "c": 0.17076,
    "h": 268
  },
  "luminance": 0.08997
}

Semantic roles & 50–950 ramp

primary
#304BB5
secondary
#C7B77A
accent
#C246E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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