#305DB8#305DB8

#305DB8 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.8% C 0.153 H 262.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#305DB8
RGBrgb(48, 93, 184)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 74%, 72%)
CMYKcmyk(73.9%, 49.5%, 0%, 27.8%)
CIE-LABlab(41.08, 16.63, -52.64)
CIE-LCHlch(41.08, 55.20, 287.54°)
OKLaboklab(49.77% -0.02 -0.1512)
OKLCHoklch(49.77% 0.153 262.5)
XYZxyz(13.7819, 11.9163, 46.9118)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DB8 #B88B30
analogous
#30A1B8 #305DB8 #4730B8
triadic
#305DB8 #B8305D #5DB830
tetradic
#305DB8 #B830A1 #B88B30 #30B847
square
#305DB8 #B830A1 #B88B30 #30B847
split-complementary
#305DB8 #B84730 #A1B830
monochromatic
#172C57 #234487 #305DB8 #537DD2 #84A2DF

Accessibility & contrast

On white

6.21
#305DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#305DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DB8
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DB8#FFFFFF#000000##FFFFFF
##305DB81.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2867BB
Deuteranopia (green-blind)
#005BB6
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305db8;
/* rgb */ color: rgb(48, 93, 184);
/* oklch */ color: oklch(49.8% 0.153 262.5);
Tailwind
colors: {
  custom: {
    50: '#7b8ace',
    500: '#305db8',
    950: '#000000',
  },
}
SCSS
$custom: #305db8;
$custom-light: #7b8ace;
$custom-dark: #000000;
JSON
{
  "hex": "#305db8",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 184
  },
  "hsl": {
    "h": 220.147,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49772,
    "c": 0.15252,
    "h": 262.5
  },
  "luminance": 0.11918
}

Semantic roles & 50–950 ramp

primary
#305DB8
secondary
#C8AF7C
accent
#AE46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #305DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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