#305CB4#305CB4

#305CB4 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.148 H 262.4°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#305CB4
RGBrgb(48, 92, 180)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(73.3%, 48.9%, 0%, 29.4%)
CIE-LABlab(40.53, 15.78, -51.18)
CIE-LCHlch(40.53, 53.55, 287.13°)
OKLaboklab(49.27% -0.0197 -0.1469)
OKLCHoklch(49.27% 0.148 262.4)
XYZxyz(13.2813, 11.5765, 44.7057)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CB4 #B48830
analogous
#309EB4 #305CB4 #4630B4
triadic
#305CB4 #B4305C #5CB430
tetradic
#305CB4 #B4309E #B48830 #30B446
square
#305CB4 #B4309E #B48830 #30B446
split-complementary
#305CB4 #B44630 #9EB430
monochromatic
#162B53 #234384 #305CB4 #517BD1 #81A0DD

Accessibility & contrast

On white

6.33
#305CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#305CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CB4
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CB4#FFFFFF#000000##FFFFFF
##305CB41.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A66B7
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305cb4;
/* rgb */ color: rgb(48, 92, 180);
/* oklch */ color: oklch(49.3% 0.148 262.4);
Tailwind
colors: {
  custom: {
    50: '#7a89cb',
    500: '#305cb4',
    950: '#000000',
  },
}
SCSS
$custom: #305cb4;
$custom-light: #7a89cb;
$custom-dark: #000000;
JSON
{
  "hex": "#305cb4",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 220,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49268,
    "c": 0.14824,
    "h": 262.4
  },
  "luminance": 0.11578
}

Semantic roles & 50–950 ramp

primary
#305CB4
secondary
#C6AD79
accent
#AE47E1
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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