#305DB4#305DB4

#305DB4 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.5% C 0.147 H 262.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#305DB4
RGBrgb(48, 93, 180)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(73.3%, 48.3%, 0%, 29.4%)
CIE-LABlab(40.82, 15.12, -50.72)
CIE-LCHlch(40.82, 52.93, 286.60°)
OKLaboklab(49.48% -0.0205 -0.1456)
OKLCHoklch(49.48% 0.147 262)
XYZxyz(13.3685, 11.7509, 44.7348)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DB4 #B48730
analogous
#309FB4 #305DB4 #4530B4
triadic
#305DB4 #B4305D #5DB430
tetradic
#305DB4 #B4309F #B48730 #30B445
square
#305DB4 #B4309F #B48730 #30B445
split-complementary
#305DB4 #B44530 #9FB430
monochromatic
#162B53 #234484 #305DB4 #517CD1 #81A1DD

Accessibility & contrast

On white

6.27
#305DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#305DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DB4
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DB4#FFFFFF#000000##FFFFFF
##305DB41.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D67B7
Deuteranopia (green-blind)
#035BB2
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305db4;
/* rgb */ color: rgb(48, 93, 180);
/* oklch */ color: oklch(49.5% 0.147 262.0);
Tailwind
colors: {
  custom: {
    50: '#7a8acb',
    500: '#305db4',
    950: '#000000',
  },
}
SCSS
$custom: #305db4;
$custom-light: #7a8acb;
$custom-dark: #000000;
JSON
{
  "hex": "#305db4",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 180
  },
  "hsl": {
    "h": 219.545,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49484,
    "c": 0.14701,
    "h": 262
  },
  "luminance": 0.11752
}

Semantic roles & 50–950 ramp

primary
#305DB4
secondary
#C6AC79
accent
#AC47E1
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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