#305C9D#305C9D

#305C9D is a mid, moderate blue. Relative luminance 0.107; OKLCH L 47.7% C 0.116 H 258.1°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#305C9D
RGBrgb(48, 92, 157)
HSLhsl(216, 53%, 40%)
HSVhsv(216, 69%, 62%)
CMYKcmyk(69.4%, 41.4%, 0%, 38.4%)
CIE-LABlab(39.10, 7.13, -39.85)
CIE-LCHlch(39.10, 40.48, 280.14°)
OKLaboklab(47.7% -0.0239 -0.1136)
OKLCHoklch(47.7% 0.116 258.1)
XYZxyz(11.1297, 10.7159, 33.3736)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305C9D #9D7130
analogous
#30929D #305C9D #3A309D
triadic
#305C9D #9D305C #5C9D30
tetradic
#305C9D #9D3092 #9D7130 #309D3A
square
#305C9D #9D3092 #9D7130 #309D3A
split-complementary
#305C9D #9D3A30 #929D30
monochromatic
#13253F #22416E #305C9D #4479C6 #739AD4

Accessibility & contrast

On white

6.68
#305C9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#305C9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305C9D
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305C9D#FFFFFF#000000##FFFFFF
##305C9D1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E62A0
Deuteranopia (green-blind)
#2D579C
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #305c9d;
/* rgb */ color: rgb(48, 92, 157);
/* oklch */ color: oklch(47.7% 0.116 258.1);
Tailwind
colors: {
  custom: {
    50: '#7589ba',
    500: '#305c9d',
    950: '#000000',
  },
}
SCSS
$custom: #305c9d;
$custom-light: #7589ba;
$custom-dark: #000000;
JSON
{
  "hex": "#305c9d",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 157
  },
  "hsl": {
    "h": 215.78,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47697,
    "c": 0.11612,
    "h": 258.1
  },
  "luminance": 0.10717
}

Semantic roles & 50–950 ramp

primary
#305C9D
secondary
#BC9C6D
accent
#A24BDD
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #305C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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