#305BB6#305BB6

#305BB6 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.152 H 263.0°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#305BB6
RGBrgb(48, 91, 182)
HSLhsl(221, 58%, 45%)
HSVhsv(221, 74%, 71%)
CMYKcmyk(73.6%, 50%, 0%, 28.6%)
CIE-LABlab(40.39, 17.18, -52.59)
CIE-LCHlch(40.39, 55.32, 288.09°)
OKLaboklab(49.2% -0.0186 -0.1511)
OKLCHoklch(49.2% 0.152 263)
XYZxyz(13.4005, 11.4865, 45.7578)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BB6 #B68B30
analogous
#309EB6 #305BB6 #4830B6
triadic
#305BB6 #B6305B #5BB630
tetradic
#305BB6 #B6309E #B68B30 #30B648
square
#305BB6 #B6309E #B68B30 #30B648
split-complementary
#305BB6 #B64830 #9EB630
monochromatic
#162B55 #234386 #305BB6 #527BD1 #82A0DE

Accessibility & contrast

On white

6.37
#305BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#305BB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BB6
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BB6#FFFFFF#000000##FFFFFF
##305BB61.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2566B9
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305bb6;
/* rgb */ color: rgb(48, 91, 182);
/* oklch */ color: oklch(49.2% 0.152 263.0);
Tailwind
colors: {
  custom: {
    50: '#7a88cc',
    500: '#305bb6',
    950: '#000000',
  },
}
SCSS
$custom: #305bb6;
$custom-light: #7a88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#305bb6",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 182
  },
  "hsl": {
    "h": 220.746,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49199,
    "c": 0.15224,
    "h": 263
  },
  "luminance": 0.11488
}

Semantic roles & 50–950 ramp

primary
#305BB6
secondary
#C7AF7B
accent
#B046E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #305BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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