#305FB8#305FB8

#305FB8 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.2% C 0.150 H 261.7°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#305FB8
RGBrgb(48, 95, 184)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 72%)
CMYKcmyk(73.9%, 48.4%, 0%, 27.8%)
CIE-LABlab(41.65, 15.33, -51.73)
CIE-LCHlch(41.65, 53.96, 286.51°)
OKLaboklab(50.2% -0.0217 -0.1485)
OKLCHoklch(50.2% 0.15 261.7)
XYZxyz(13.9598, 12.2720, 46.9711)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FB8 #B88930
analogous
#30A3B8 #305FB8 #4530B8
triadic
#305FB8 #B8305F #5FB830
tetradic
#305FB8 #B830A3 #B88930 #30B845
square
#305FB8 #B830A3 #B88930 #30B845
split-complementary
#305FB8 #B84530 #A3B830
monochromatic
#172D57 #234687 #305FB8 #537FD2 #84A3DF

Accessibility & contrast

On white

6.08
#305FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#305FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FB8
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FB8#FFFFFF#000000##FFFFFF
##305FB81.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #305fb8;
/* rgb */ color: rgb(48, 95, 184);
/* oklch */ color: oklch(50.2% 0.150 261.7);
Tailwind
colors: {
  custom: {
    50: '#7b8bce',
    500: '#305fb8',
    950: '#000000',
  },
}
SCSS
$custom: #305fb8;
$custom-light: #7b8bce;
$custom-dark: #000000;
JSON
{
  "hex": "#305fb8",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 219.265,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50203,
    "c": 0.15008,
    "h": 261.7
  },
  "luminance": 0.12273
}

Semantic roles & 50–950 ramp

primary
#305FB8
secondary
#C8AE7C
accent
#AC46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #305FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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