#305CA4#305CA4

#305CA4 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.2% C 0.126 H 259.8°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#305CA4
RGBrgb(48, 92, 164)
HSLhsl(217, 55%, 42%)
HSVhsv(217, 71%, 64%)
CMYKcmyk(70.7%, 43.9%, 0%, 35.7%)
CIE-LABlab(39.52, 9.75, -43.36)
CIE-LCHlch(39.52, 44.44, 282.67°)
OKLaboklab(48.16% -0.0224 -0.1239)
OKLCHoklch(48.16% 0.126 259.8)
XYZxyz(11.7445, 10.9618, 36.6116)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CA4 #A47830
analogous
#3096A4 #305CA4 #3E30A4
triadic
#305CA4 #A4305C #5CA430
tetradic
#305CA4 #A43096 #A47830 #30A43E
square
#305CA4 #A43096 #A47830 #30A43E
split-complementary
#305CA4 #A43E30 #96A430
monochromatic
#142745 #224175 #305CA4 #4879C9 #779CD7

Accessibility & contrast

On white

6.58
#305CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305CA4
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CA4#FFFFFF#000000##FFFFFF
##305CA41.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3963A7
Deuteranopia (green-blind)
#2558A3
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #305ca4;
/* rgb */ color: rgb(48, 92, 164);
/* oklch */ color: oklch(48.2% 0.126 259.8);
Tailwind
colors: {
  custom: {
    50: '#7689bf',
    500: '#305ca4',
    950: '#000000',
  },
}
SCSS
$custom: #305ca4;
$custom-light: #7689bf;
$custom-dark: #000000;
JSON
{
  "hex": "#305ca4",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 164
  },
  "hsl": {
    "h": 217.241,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48157,
    "c": 0.12594,
    "h": 259.8
  },
  "luminance": 0.10963
}

Semantic roles & 50–950 ramp

primary
#305CA4
secondary
#BFA170
accent
#A64ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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