#305BA8#305BA8

#305BA8 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.2% C 0.133 H 261.0°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#305BA8
RGBrgb(48, 91, 168)
HSLhsl(219, 56%, 42%)
HSVhsv(219, 71%, 66%)
CMYKcmyk(71.4%, 45.8%, 0%, 34.1%)
CIE-LABlab(39.47, 11.90, -45.80)
CIE-LCHlch(39.47, 47.32, 284.57°)
OKLaboklab(48.2% -0.0207 -0.1311)
OKLCHoklch(48.2% 0.133 261)
XYZxyz(12.0254, 10.9364, 38.5154)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BA8 #A87D30
analogous
#3097A8 #305BA8 #4130A8
triadic
#305BA8 #A8305B #5BA830
tetradic
#305BA8 #A83097 #A87D30 #30A841
square
#305BA8 #A83097 #A87D30 #30A841
split-complementary
#305BA8 #A84130 #97A830
monochromatic
#152749 #224178 #305BA8 #4A78CB #7A9CD9

Accessibility & contrast

On white

6.59
#305BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#305BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BA8
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BA8#FFFFFF#000000##FFFFFF
##305BA81.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AB
Deuteranopia (green-blind)
#1C58A6
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #305ba8;
/* rgb */ color: rgb(48, 91, 168);
/* oklch */ color: oklch(48.2% 0.133 261.0);
Tailwind
colors: {
  custom: {
    50: '#7788c2',
    500: '#305ba8',
    950: '#000000',
  },
}
SCSS
$custom: #305ba8;
$custom-light: #7788c2;
$custom-dark: #000000;
JSON
{
  "hex": "#305ba8",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 168
  },
  "hsl": {
    "h": 218.5,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48204,
    "c": 0.13276,
    "h": 261
  },
  "luminance": 0.10938
}

Semantic roles & 50–950 ramp

primary
#305BA8
secondary
#C1A573
accent
#A949DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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