#305FB6#305FB6

#305FB6 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.147 H 261.4°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#305FB6
RGBrgb(48, 95, 182)
HSLhsl(219, 58%, 45%)
HSVhsv(219, 74%, 71%)
CMYKcmyk(73.6%, 47.8%, 0%, 28.6%)
CIE-LABlab(41.51, 14.58, -50.77)
CIE-LCHlch(41.51, 52.82, 286.02°)
OKLaboklab(50.06% -0.022 -0.1457)
OKLCHoklch(50.06% 0.147 261.4)
XYZxyz(13.7516, 12.1887, 45.8748)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FB6 #B68730
analogous
#30A2B6 #305FB6 #4430B6
triadic
#305FB6 #B6305F #5FB630
tetradic
#305FB6 #B630A2 #B68730 #30B644
square
#305FB6 #B630A2 #B68730 #30B644
split-complementary
#305FB6 #B64430 #A2B630
monochromatic
#162C55 #234686 #305FB6 #527FD1 #82A2DE

Accessibility & contrast

On white

6.11
#305FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#305FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FB6
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FB6#FFFFFF#000000##FFFFFF
##305FB61.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3068B9
Deuteranopia (green-blind)
#095CB4
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #305fb6;
/* rgb */ color: rgb(48, 95, 182);
/* oklch */ color: oklch(50.1% 0.147 261.4);
Tailwind
colors: {
  custom: {
    50: '#7a8bcc',
    500: '#305fb6',
    950: '#000000',
  },
}
SCSS
$custom: #305fb6;
$custom-light: #7a8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#305fb6",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 182
  },
  "hsl": {
    "h": 218.955,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50061,
    "c": 0.14733,
    "h": 261.4
  },
  "luminance": 0.1219
}

Semantic roles & 50–950 ramp

primary
#305FB6
secondary
#C7AC7B
accent
#AB46E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #305FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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