#305EB4#305EB4

#305EB4 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.146 H 261.6°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#305EB4
RGBrgb(48, 94, 180)
HSLhsl(219, 58%, 45%)
HSVhsv(219, 73%, 71%)
CMYKcmyk(73.3%, 47.8%, 0%, 29.4%)
CIE-LABlab(41.10, 14.47, -50.26)
CIE-LCHlch(41.10, 52.31, 286.06°)
OKLaboklab(49.7% -0.0214 -0.1442)
OKLCHoklch(49.7% 0.146 261.6)
XYZxyz(13.4569, 11.9276, 44.7642)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EB4 #B48630
analogous
#30A0B4 #305EB4 #4430B4
triadic
#305EB4 #B4305E #5EB430
tetradic
#305EB4 #B430A0 #B48630 #30B444
square
#305EB4 #B430A0 #B48630 #30B444
split-complementary
#305EB4 #B44430 #A0B430
monochromatic
#162C53 #234584 #305EB4 #517DD1 #81A1DD

Accessibility & contrast

On white

6.20
#305EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#305EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305EB4
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EB4#FFFFFF#000000##FFFFFF
##305EB41.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F67B7
Deuteranopia (green-blind)
#0A5BB2
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305eb4;
/* rgb */ color: rgb(48, 94, 180);
/* oklch */ color: oklch(49.7% 0.146 261.6);
Tailwind
colors: {
  custom: {
    50: '#7a8bcb',
    500: '#305eb4',
    950: '#000000',
  },
}
SCSS
$custom: #305eb4;
$custom-light: #7a8bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#305eb4",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 180
  },
  "hsl": {
    "h": 219.091,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49702,
    "c": 0.14579,
    "h": 261.6
  },
  "luminance": 0.11929
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #305EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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