#305A9D#305A9D

#305A9D is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.2% C 0.118 H 259.4°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#305A9D
RGBrgb(48, 90, 157)
HSLhsl(217, 53%, 40%)
HSVhsv(217, 69%, 62%)
CMYKcmyk(69.4%, 42.7%, 0%, 38.4%)
CIE-LABlab(38.51, 8.42, -40.80)
CIE-LCHlch(38.51, 41.66, 281.66°)
OKLaboklab(47.24% -0.0219 -0.1164)
OKLCHoklch(47.24% 0.118 259.4)
XYZxyz(10.9587, 10.3739, 33.3166)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305A9D #9D7330
analogous
#30909D #305A9D #3D309D
triadic
#305A9D #9D305A #5A9D30
tetradic
#305A9D #9D3090 #9D7330 #309D3D
square
#305A9D #9D3090 #9D7330 #309D3D
split-complementary
#305A9D #9D3D30 #909D30
monochromatic
#13243F #223F6E #305A9D #4476C6 #7399D4

Accessibility & contrast

On white

6.83
#305A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#305A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305A9D
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305A9D#FFFFFF#000000##FFFFFF
##305A9D1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B60A0
Deuteranopia (green-blind)
#29569C
Tritanopia (blue-blind)
#006974
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #305a9d;
/* rgb */ color: rgb(48, 90, 157);
/* oklch */ color: oklch(47.2% 0.118 259.4);
Tailwind
colors: {
  custom: {
    50: '#7588ba',
    500: '#305a9d',
    950: '#000000',
  },
}
SCSS
$custom: #305a9d;
$custom-light: #7588ba;
$custom-dark: #000000;
JSON
{
  "hex": "#305a9d",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 157
  },
  "hsl": {
    "h": 216.881,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47238,
    "c": 0.11848,
    "h": 259.4
  },
  "luminance": 0.10375
}

Semantic roles & 50–950 ramp

primary
#305A9D
secondary
#BC9E6D
accent
#A54BDD
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #305A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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