#305BB8#305BB8

#305BB8 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.155 H 263.2°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#305BB8
RGBrgb(48, 91, 184)
HSLhsl(221, 59%, 45%)
HSVhsv(221, 74%, 72%)
CMYKcmyk(73.9%, 50.5%, 0%, 27.8%)
CIE-LABlab(40.52, 17.94, -53.54)
CIE-LCHlch(40.52, 56.46, 288.52°)
OKLaboklab(49.35% -0.0183 -0.1539)
OKLCHoklch(49.35% 0.155 263.2)
XYZxyz(13.6087, 11.5698, 46.8541)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BB8 #B88D30
analogous
#309FB8 #305BB8 #4930B8
triadic
#305BB8 #B8305B #5BB830
tetradic
#305BB8 #B8309F #B88D30 #30B849
square
#305BB8 #B8309F #B88D30 #30B849
split-complementary
#305BB8 #B84930 #9FB830
monochromatic
#172B57 #234387 #305BB8 #537BD2 #84A0DF

Accessibility & contrast

On white

6.34
#305BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#305BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BB8
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BB8#FFFFFF#000000##FFFFFF
##305BB81.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BB
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305bb8;
/* rgb */ color: rgb(48, 91, 184);
/* oklch */ color: oklch(49.3% 0.155 263.2);
Tailwind
colors: {
  custom: {
    50: '#7b88ce',
    500: '#305bb8',
    950: '#000000',
  },
}
SCSS
$custom: #305bb8;
$custom-light: #7b88ce;
$custom-dark: #000000;
JSON
{
  "hex": "#305bb8",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 184
  },
  "hsl": {
    "h": 221.029,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49346,
    "c": 0.15499,
    "h": 263.2
  },
  "luminance": 0.11571
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #305BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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