#305BB9#305BB9

#305BB9 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.4% C 0.156 H 263.3°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#305BB9
RGBrgb(48, 91, 185)
HSLhsl(221, 59%, 46%)
HSVhsv(221, 74%, 73%)
CMYKcmyk(74.1%, 50.8%, 0%, 27.5%)
CIE-LABlab(40.59, 18.31, -54.01)
CIE-LCHlch(40.59, 57.03, 288.73°)
OKLaboklab(49.42% -0.0182 -0.1553)
OKLCHoklch(49.42% 0.156 263.3)
XYZxyz(13.7139, 11.6118, 47.4081)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BB9 #B98E30
analogous
#309FB9 #305BB9 #4A30B9
triadic
#305BB9 #B9305B #5BB930
tetradic
#305BB9 #B9309F #B98E30 #30B94A
square
#305BB9 #B9309F #B98E30 #30B94A
split-complementary
#305BB9 #B94A30 #9FB930
monochromatic
#172B58 #234388 #305BB9 #547BD3 #84A1DF

Accessibility & contrast

On white

6.32
#305BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#305BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BB9
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BB9#FFFFFF#000000##FFFFFF
##305BB91.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2166BC
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305bb9;
/* rgb */ color: rgb(48, 91, 185);
/* oklch */ color: oklch(49.4% 0.156 263.3);
Tailwind
colors: {
  custom: {
    50: '#7b88cf',
    500: '#305bb9',
    950: '#000000',
  },
}
SCSS
$custom: #305bb9;
$custom-light: #7b88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#305bb9",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 185
  },
  "hsl": {
    "h": 221.168,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4942,
    "c": 0.15636,
    "h": 263.3
  },
  "luminance": 0.11613
}

Semantic roles & 50–950 ramp

primary
#305BB9
secondary
#C9B17C
accent
#B146E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #305BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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