#305B9E#305B9E

#305B9E is a mid, moderate blue. Relative luminance 0.106; OKLCH L 47.5% C 0.119 H 259.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#305B9E
RGBrgb(48, 91, 158)
HSLhsl(217, 53%, 40%)
HSVhsv(217, 70%, 62%)
CMYKcmyk(69.6%, 42.4%, 0%, 38%)
CIE-LABlab(38.86, 8.15, -40.83)
CIE-LCHlch(38.86, 41.63, 281.28°)
OKLaboklab(47.53% -0.0227 -0.1165)
OKLCHoklch(47.53% 0.119 259)
XYZxyz(11.1293, 10.5780, 33.7964)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305B9E #9E7330
analogous
#30929E #305B9E #3C309E
triadic
#305B9E #9E305B #5B9E30
tetradic
#305B9E #9E3092 #9E7330 #309E3C
square
#305B9E #9E3092 #9E7330 #309E3C
split-complementary
#305B9E #9E3C30 #929E30
monochromatic
#132540 #22406F #305B9E #4577C6 #749AD5

Accessibility & contrast

On white

6.74
#305B9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305B9E
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305B9E#FFFFFF#000000##FFFFFF
##305B9E1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C61A1
Deuteranopia (green-blind)
#2A579D
Tritanopia (blue-blind)
#006A75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #305b9e;
/* rgb */ color: rgb(48, 91, 158);
/* oklch */ color: oklch(47.5% 0.119 259.0);
Tailwind
colors: {
  custom: {
    50: '#7588bb',
    500: '#305b9e',
    950: '#000000',
  },
}
SCSS
$custom: #305b9e;
$custom-light: #7588bb;
$custom-dark: #000000;
JSON
{
  "hex": "#305b9e",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 158
  },
  "hsl": {
    "h": 216.545,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47533,
    "c": 0.1187,
    "h": 259
  },
  "luminance": 0.10579
}

Semantic roles & 50–950 ramp

primary
#305B9E
secondary
#BD9E6D
accent
#A44BDD
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #305B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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