#305EB8#305EB8

#305EB8 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.151 H 262.1°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#305EB8
RGBrgb(48, 94, 184)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 74%, 72%)
CMYKcmyk(73.9%, 48.9%, 0%, 27.8%)
CIE-LABlab(41.36, 15.98, -52.18)
CIE-LCHlch(41.36, 54.58, 287.03°)
OKLaboklab(49.99% -0.0208 -0.1499)
OKLCHoklch(49.99% 0.151 262.1)
XYZxyz(13.8703, 12.0930, 46.9413)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EB8 #B88A30
analogous
#30A2B8 #305EB8 #4630B8
triadic
#305EB8 #B8305E #5EB830
tetradic
#305EB8 #B830A2 #B88A30 #30B846
square
#305EB8 #B830A2 #B88A30 #30B846
split-complementary
#305EB8 #B84630 #A2B830
monochromatic
#172C57 #234587 #305EB8 #537ED2 #84A2DF

Accessibility & contrast

On white

6.14
#305EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#305EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305EB8
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EB8#FFFFFF#000000##FFFFFF
##305EB81.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B68BB
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #305eb8;
/* rgb */ color: rgb(48, 94, 184);
/* oklch */ color: oklch(50.0% 0.151 262.1);
Tailwind
colors: {
  custom: {
    50: '#7b8bce',
    500: '#305eb8',
    950: '#000000',
  },
}
SCSS
$custom: #305eb8;
$custom-light: #7b8bce;
$custom-dark: #000000;
JSON
{
  "hex": "#305eb8",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 184
  },
  "hsl": {
    "h": 219.706,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49987,
    "c": 0.1513,
    "h": 262.1
  },
  "luminance": 0.12094
}

Semantic roles & 50–950 ramp

primary
#305EB8
secondary
#C8AE7C
accent
#AD46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #305EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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