#305EB5#305EB5

#305EB5 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.147 H 261.7°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#305EB5
RGBrgb(48, 94, 181)
HSLhsl(219, 58%, 45%)
HSVhsv(219, 73%, 71%)
CMYKcmyk(73.5%, 48.1%, 0%, 29%)
CIE-LABlab(41.17, 14.85, -50.75)
CIE-LCHlch(41.17, 52.88, 286.31°)
OKLaboklab(49.77% -0.0213 -0.1456)
OKLCHoklch(49.77% 0.147 261.7)
XYZxyz(13.5591, 11.9685, 45.3027)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EB5 #B58730
analogous
#30A1B5 #305EB5 #4430B5
triadic
#305EB5 #B5305E #5EB530
tetradic
#305EB5 #B530A1 #B58730 #30B544
square
#305EB5 #B530A1 #B58730 #30B544
split-complementary
#305EB5 #B54430 #A1B530
monochromatic
#162C54 #234585 #305EB5 #517DD1 #82A2DE

Accessibility & contrast

On white

6.19
#305EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#305EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305EB5
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EB5#FFFFFF#000000##FFFFFF
##305EB51.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E68B8
Deuteranopia (green-blind)
#065BB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305eb5;
/* rgb */ color: rgb(48, 94, 181);
/* oklch */ color: oklch(49.8% 0.147 261.7);
Tailwind
colors: {
  custom: {
    50: '#7a8bcc',
    500: '#305eb5',
    950: '#000000',
  },
}
SCSS
$custom: #305eb5;
$custom-light: #7a8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#305eb5",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 181
  },
  "hsl": {
    "h": 219.248,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49772,
    "c": 0.14718,
    "h": 261.7
  },
  "luminance": 0.1197
}

Semantic roles & 50–950 ramp

primary
#305EB5
secondary
#C7AC7A
accent
#AC46E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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