#305FA6#305FA6

#305FA6 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.0% C 0.125 H 258.5°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#305FA6
RGBrgb(48, 95, 166)
HSLhsl(216, 55%, 42%)
HSVhsv(216, 71%, 65%)
CMYKcmyk(71.1%, 42.8%, 0%, 34.9%)
CIE-LABlab(40.52, 8.56, -42.95)
CIE-LCHlch(40.52, 43.79, 281.27°)
OKLaboklab(48.97% -0.0249 -0.1227)
OKLCHoklch(48.97% 0.125 258.5)
XYZxyz(12.1916, 11.5647, 37.6587)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FA6 #A67730
analogous
#309AA6 #305FA6 #3C30A6
triadic
#305FA6 #A6305F #5FA630
tetradic
#305FA6 #A6309A #A67730 #30A63C
square
#305FA6 #A6309A #A67730 #30A63C
split-complementary
#305FA6 #A63C30 #9AA630
monochromatic
#152947 #224477 #305FA6 #497CCA #789ED8

Accessibility & contrast

On white

6.34
#305FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#305FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FA6
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FA6#FFFFFF#000000##FFFFFF
##305FA61.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D65A9
Deuteranopia (green-blind)
#295AA5
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305fa6;
/* rgb */ color: rgb(48, 95, 166);
/* oklch */ color: oklch(49.0% 0.125 258.5);
Tailwind
colors: {
  custom: {
    50: '#778bc1',
    500: '#305fa6',
    950: '#000000',
  },
}
SCSS
$custom: #305fa6;
$custom-light: #778bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#305fa6",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 166
  },
  "hsl": {
    "h": 216.102,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48969,
    "c": 0.12518,
    "h": 258.5
  },
  "luminance": 0.11566
}

Semantic roles & 50–950 ramp

primary
#305FA6
secondary
#C0A171
accent
#A349DE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #305FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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