#305FB4#305FB4

#305FB4 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.9% C 0.145 H 261.1°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#305FB4
RGBrgb(48, 95, 180)
HSLhsl(219, 58%, 45%)
HSVhsv(219, 73%, 71%)
CMYKcmyk(73.3%, 47.2%, 0%, 29.4%)
CIE-LABlab(41.38, 13.83, -49.81)
CIE-LCHlch(41.38, 51.69, 285.51°)
OKLaboklab(49.92% -0.0223 -0.1428)
OKLCHoklch(49.92% 0.145 261.1)
XYZxyz(13.5464, 12.1066, 44.7940)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FB4 #B48530
analogous
#30A1B4 #305FB4 #4330B4
triadic
#305FB4 #B4305F #5FB430
tetradic
#305FB4 #B430A1 #B48530 #30B443
square
#305FB4 #B430A1 #B48530 #30B443
split-complementary
#305FB4 #B44330 #A1B430
monochromatic
#162C53 #234684 #305FB4 #517ED1 #81A2DD

Accessibility & contrast

On white

6.14
#305FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#305FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FB4
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FB4#FFFFFF#000000##FFFFFF
##305FB41.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3268B7
Deuteranopia (green-blind)
#105CB2
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #305fb4;
/* rgb */ color: rgb(48, 95, 180);
/* oklch */ color: oklch(49.9% 0.145 261.1);
Tailwind
colors: {
  custom: {
    50: '#7a8bcb',
    500: '#305fb4',
    950: '#000000',
  },
}
SCSS
$custom: #305fb4;
$custom-light: #7a8bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#305fb4",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 180
  },
  "hsl": {
    "h": 218.636,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4992,
    "c": 0.14458,
    "h": 261.1
  },
  "luminance": 0.12108
}

Semantic roles & 50–950 ramp

primary
#305FB4
secondary
#C6AB79
accent
#AA47E1
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #305FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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