#305CB6#305CB6

#305CB6 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.151 H 262.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#305CB6
RGBrgb(48, 92, 182)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 74%, 71%)
CMYKcmyk(73.6%, 49.5%, 0%, 28.6%)
CIE-LABlab(40.67, 16.53, -52.13)
CIE-LCHlch(40.67, 54.69, 287.59°)
OKLaboklab(49.41% -0.0194 -0.1497)
OKLCHoklch(49.41% 0.151 262.6)
XYZxyz(13.4866, 11.6586, 45.7865)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CB6 #B68A30
analogous
#309FB6 #305CB6 #4730B6
triadic
#305CB6 #B6305C #5CB630
tetradic
#305CB6 #B6309F #B68A30 #30B647
square
#305CB6 #B6309F #B68A30 #30B647
split-complementary
#305CB6 #B64730 #9FB630
monochromatic
#162B55 #234486 #305CB6 #527CD1 #82A0DE

Accessibility & contrast

On white

6.30
#305CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#305CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CB6
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CB6#FFFFFF#000000##FFFFFF
##305CB61.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2866B9
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305cb6;
/* rgb */ color: rgb(48, 92, 182);
/* oklch */ color: oklch(49.4% 0.151 262.6);
Tailwind
colors: {
  custom: {
    50: '#7a89cc',
    500: '#305cb6',
    950: '#000000',
  },
}
SCSS
$custom: #305cb6;
$custom-light: #7a89cc;
$custom-dark: #000000;
JSON
{
  "hex": "#305cb6",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 182
  },
  "hsl": {
    "h": 220.299,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49413,
    "c": 0.151,
    "h": 262.6
  },
  "luminance": 0.1166
}

Semantic roles & 50–950 ramp

primary
#305CB6
secondary
#C7AE7B
accent
#AF46E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #305CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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