#305BB4#305BB4

#305BB4 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.149 H 262.8°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#305BB4
RGBrgb(48, 91, 180)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(73.3%, 49.4%, 0%, 29.4%)
CIE-LABlab(40.25, 16.43, -51.63)
CIE-LCHlch(40.25, 54.18, 287.65°)
OKLaboklab(49.05% -0.0188 -0.1483)
OKLCHoklch(49.05% 0.149 262.8)
XYZxyz(13.1953, 11.4044, 44.6770)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BB4 #B48930
analogous
#309DB4 #305BB4 #4730B4
triadic
#305BB4 #B4305B #5BB430
tetradic
#305BB4 #B4309D #B48930 #30B447
square
#305BB4 #B4309D #B48930 #30B447
split-complementary
#305BB4 #B44730 #9DB430
monochromatic
#162A53 #234384 #305BB4 #517AD1 #819FDD

Accessibility & contrast

On white

6.40
#305BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#305BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BB4
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BB4#FFFFFF#000000##FFFFFF
##305BB41.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2865B7
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305bb4;
/* rgb */ color: rgb(48, 91, 180);
/* oklch */ color: oklch(49.1% 0.149 262.8);
Tailwind
colors: {
  custom: {
    50: '#7a88cb',
    500: '#305bb4',
    950: '#000000',
  },
}
SCSS
$custom: #305bb4;
$custom-light: #7a88cb;
$custom-dark: #000000;
JSON
{
  "hex": "#305bb4",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 180
  },
  "hsl": {
    "h": 220.455,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49053,
    "c": 0.14947,
    "h": 262.8
  },
  "luminance": 0.11406
}

Semantic roles & 50–950 ramp

primary
#305BB4
secondary
#C6AD79
accent
#AF47E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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