#305DB6#305DB6

#305DB6 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.6% C 0.150 H 262.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#305DB6
RGBrgb(48, 93, 182)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 74%, 71%)
CMYKcmyk(73.6%, 48.9%, 0%, 28.6%)
CIE-LABlab(40.95, 15.88, -51.68)
CIE-LCHlch(40.95, 54.07, 287.08°)
OKLaboklab(49.63% -0.0203 -0.1484)
OKLCHoklch(49.63% 0.15 262.2)
XYZxyz(13.5738, 11.8330, 45.8155)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DB6 #B68930
analogous
#30A0B6 #305DB6 #4630B6
triadic
#305DB6 #B6305D #5DB630
tetradic
#305DB6 #B630A0 #B68930 #30B646
square
#305DB6 #B630A0 #B68930 #30B646
split-complementary
#305DB6 #B64630 #A0B630
monochromatic
#162C55 #234486 #305DB6 #527DD1 #82A1DE

Accessibility & contrast

On white

6.24
#305DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#305DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DB6
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DB6#FFFFFF#000000##FFFFFF
##305DB61.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B67B9
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305db6;
/* rgb */ color: rgb(48, 93, 182);
/* oklch */ color: oklch(49.6% 0.150 262.2);
Tailwind
colors: {
  custom: {
    50: '#7a8acc',
    500: '#305db6',
    950: '#000000',
  },
}
SCSS
$custom: #305db6;
$custom-light: #7a8acc;
$custom-dark: #000000;
JSON
{
  "hex": "#305db6",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 182
  },
  "hsl": {
    "h": 219.851,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49628,
    "c": 0.14978,
    "h": 262.2
  },
  "luminance": 0.11834
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #305DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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