#305AB4#305AB4

#305AB4 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.8% C 0.151 H 263.2°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#305AB4
RGBrgb(48, 90, 180)
HSLhsl(221, 58%, 45%)
HSVhsv(221, 73%, 71%)
CMYKcmyk(73.3%, 50%, 0%, 29.4%)
CIE-LABlab(39.97, 17.08, -52.08)
CIE-LCHlch(39.97, 54.81, 288.16°)
OKLaboklab(48.84% -0.018 -0.1496)
OKLCHoklch(48.84% 0.151 263.2)
XYZxyz(13.1104, 11.2346, 44.6487)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AB4 #B48A30
analogous
#309CB4 #305AB4 #4830B4
triadic
#305AB4 #B4305A #5AB430
tetradic
#305AB4 #B4309C #B48A30 #30B448
square
#305AB4 #B4309C #B48A30 #30B448
split-complementary
#305AB4 #B44830 #9CB430
monochromatic
#162A53 #234284 #305AB4 #5179D1 #819EDD

Accessibility & contrast

On white

6.47
#305AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#305AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AB4
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AB4#FFFFFF#000000##FFFFFF
##305AB41.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2565B7
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305ab4;
/* rgb */ color: rgb(48, 90, 180);
/* oklch */ color: oklch(48.8% 0.151 263.2);
Tailwind
colors: {
  custom: {
    50: '#7a88cb',
    500: '#305ab4',
    950: '#000000',
  },
}
SCSS
$custom: #305ab4;
$custom-light: #7a88cb;
$custom-dark: #000000;
JSON
{
  "hex": "#305ab4",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 180
  },
  "hsl": {
    "h": 220.909,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48838,
    "c": 0.15071,
    "h": 263.2
  },
  "luminance": 0.11236
}

Semantic roles & 50–950 ramp

primary
#305AB4
secondary
#C6AE79
accent
#B047E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305AB4

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

Preview Lab → · Contrast checker → · Palette generator →

#305AB4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva