#305FB5#305FB5

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

Color values

HEX#305FB5
RGBrgb(48, 95, 181)
HSLhsl(219, 58%, 45%)
HSVhsv(219, 73%, 71%)
CMYKcmyk(73.5%, 47.5%, 0%, 29%)
CIE-LABlab(41.45, 14.20, -50.29)
CIE-LCHlch(41.45, 52.26, 285.77°)
OKLaboklab(49.99% -0.0221 -0.1443)
OKLCHoklch(49.99% 0.146 261.3)
XYZxyz(13.6486, 12.1475, 45.3325)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FB5 #B58630
analogous
#30A2B5 #305FB5 #4330B5
triadic
#305FB5 #B5305F #5FB530
tetradic
#305FB5 #B530A2 #B58630 #30B543
square
#305FB5 #B530A2 #B58630 #30B543
split-complementary
#305FB5 #B54330 #A2B530
monochromatic
#162C54 #234685 #305FB5 #517ED1 #82A2DE

Accessibility & contrast

On white

6.12
#305FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#305FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FB5
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FB5#FFFFFF#000000##FFFFFF
##305FB51.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3168B8
Deuteranopia (green-blind)
#0D5CB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #305fb5;
/* rgb */ color: rgb(48, 95, 181);
/* oklch */ color: oklch(50.0% 0.146 261.3);
Tailwind
colors: {
  custom: {
    50: '#7a8bcc',
    500: '#305fb5',
    950: '#000000',
  },
}
SCSS
$custom: #305fb5;
$custom-light: #7a8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#305fb5",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 218.797,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4999,
    "c": 0.14596,
    "h": 261.3
  },
  "luminance": 0.12149
}

Semantic roles & 50–950 ramp

primary
#305FB5
secondary
#C7AC7A
accent
#AB46E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #305FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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