#305AA4#305AA4

#305AA4 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.7% C 0.128 H 260.8°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#305AA4
RGBrgb(48, 90, 164)
HSLhsl(218, 55%, 42%)
HSVhsv(218, 71%, 64%)
CMYKcmyk(70.7%, 45.1%, 0%, 35.7%)
CIE-LABlab(38.93, 11.05, -44.29)
CIE-LCHlch(38.93, 45.65, 284.00°)
OKLaboklab(47.71% -0.0205 -0.1267)
OKLCHoklch(47.71% 0.128 260.8)
XYZxyz(11.5735, 10.6198, 36.5547)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AA4 #A47A30
analogous
#3094A4 #305AA4 #4030A4
triadic
#305AA4 #A4305A #5AA430
tetradic
#305AA4 #A43094 #A47A30 #30A440
square
#305AA4 #A43094 #A47A30 #30A440
split-complementary
#305AA4 #A44030 #94A430
monochromatic
#142645 #224075 #305AA4 #4877C9 #779AD7

Accessibility & contrast

On white

6.72
#305AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#305AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AA4
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AA4#FFFFFF#000000##FFFFFF
##305AA41.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3561A7
Deuteranopia (green-blind)
#2057A2
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #305aa4;
/* rgb */ color: rgb(48, 90, 164);
/* oklch */ color: oklch(47.7% 0.128 260.8);
Tailwind
colors: {
  custom: {
    50: '#7688bf',
    500: '#305aa4',
    950: '#000000',
  },
}
SCSS
$custom: #305aa4;
$custom-light: #7688bf;
$custom-dark: #000000;
JSON
{
  "hex": "#305aa4",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 164
  },
  "hsl": {
    "h": 218.276,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47707,
    "c": 0.12835,
    "h": 260.8
  },
  "luminance": 0.10621
}

Semantic roles & 50–950 ramp

primary
#305AA4
secondary
#BFA370
accent
#A84ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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