#305DBE#305DBE

#305DBE is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.161 H 263.1°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#305DBE
RGBrgb(48, 93, 190)
HSLhsl(221, 60%, 47%)
HSVhsv(221, 75%, 75%)
CMYKcmyk(74.7%, 51.1%, 0%, 25.5%)
CIE-LABlab(41.49, 18.90, -55.48)
CIE-LCHlch(41.49, 58.61, 288.81°)
OKLaboklab(50.21% -0.0192 -0.1596)
OKLCHoklch(50.21% 0.161 263.1)
XYZxyz(14.4242, 12.1732, 50.2947)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DBE #BE9130
analogous
#30A4BE #305DBE #4A30BE
triadic
#305DBE #BE305D #5DBE30
tetradic
#305DBE #BE30A4 #BE9130 #30BE4A
square
#305DBE #BE30A4 #BE9130 #30BE4A
split-complementary
#305DBE #BE4A30 #A4BE30
monochromatic
#172D5C #24458D #305DBE #577FD4 #88A4E1

Accessibility & contrast

On white

6.11
#305DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#305DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DBE
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DBE#FFFFFF#000000##FFFFFF
##305DBE1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2069C1
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#007484
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #305dbe;
/* rgb */ color: rgb(48, 93, 190);
/* oklch */ color: oklch(50.2% 0.161 263.1);
Tailwind
colors: {
  custom: {
    50: '#7c8ad2',
    500: '#305dbe',
    950: '#000000',
  },
}
SCSS
$custom: #305dbe;
$custom-light: #7c8ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#305dbe",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 190
  },
  "hsl": {
    "h": 220.986,
    "s": 59.664,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50213,
    "c": 0.16073,
    "h": 263.1
  },
  "luminance": 0.12175
}

Semantic roles & 50–950 ramp

primary
#305DBE
secondary
#CBB37F
accent
#B145E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #305DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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