#305BB1#305BB1

#305BB1 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.8% C 0.145 H 262.4°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#305BB1
RGBrgb(48, 91, 177)
HSLhsl(220, 57%, 44%)
HSVhsv(220, 73%, 69%)
CMYKcmyk(72.9%, 48.6%, 0%, 30.6%)
CIE-LABlab(40.05, 15.29, -50.19)
CIE-LCHlch(40.05, 52.47, 286.95°)
OKLaboklab(48.84% -0.0192 -0.144)
OKLCHoklch(48.84% 0.145 262.4)
XYZxyz(12.8930, 11.2835, 43.0849)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BB1 #B18630
analogous
#309CB1 #305BB1 #4630B1
triadic
#305BB1 #B1305B #5BB130
tetradic
#305BB1 #B1309C #B18630 #30B146
square
#305BB1 #B1309C #B18630 #30B146
split-complementary
#305BB1 #B14630 #9CB130
monochromatic
#162951 #234281 #305BB1 #4F7ACF #7F9EDC

Accessibility & contrast

On white

6.45
#305BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#305BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BB1
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BB1#FFFFFF#000000##FFFFFF
##305BB11.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B65B4
Deuteranopia (green-blind)
#0259AF
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305bb1;
/* rgb */ color: rgb(48, 91, 177);
/* oklch */ color: oklch(48.8% 0.145 262.4);
Tailwind
colors: {
  custom: {
    50: '#7988c9',
    500: '#305bb1',
    950: '#000000',
  },
}
SCSS
$custom: #305bb1;
$custom-light: #7988c9;
$custom-dark: #000000;
JSON
{
  "hex": "#305bb1",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 177
  },
  "hsl": {
    "h": 220,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48836,
    "c": 0.14531,
    "h": 262.4
  },
  "luminance": 0.11285
}

Semantic roles & 50–950 ramp

primary
#305BB1
secondary
#C5AB78
accent
#AD47E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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