#305FA8#305FA8

#305FA8 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.128 H 259.0°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#305FA8
RGBrgb(48, 95, 168)
HSLhsl(217, 56%, 42%)
HSVhsv(217, 71%, 66%)
CMYKcmyk(71.4%, 43.5%, 0%, 34.1%)
CIE-LABlab(40.64, 9.31, -43.94)
CIE-LCHlch(40.64, 44.92, 281.96°)
OKLaboklab(49.1% -0.0245 -0.1256)
OKLCHoklch(49.1% 0.128 259)
XYZxyz(12.3765, 11.6386, 38.6324)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FA8 #A87930
analogous
#309BA8 #305FA8 #3D30A8
triadic
#305FA8 #A8305F #5FA830
tetradic
#305FA8 #A8309B #A87930 #30A83D
square
#305FA8 #A8309B #A87930 #30A83D
split-complementary
#305FA8 #A83D30 #9BA830
monochromatic
#152949 #224478 #305FA8 #4A7DCB #7A9FD9

Accessibility & contrast

On white

6.31
#305FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#305FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FA8
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FA8#FFFFFF#000000##FFFFFF
##305FA81.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AB
Deuteranopia (green-blind)
#275BA7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305fa8;
/* rgb */ color: rgb(48, 95, 168);
/* oklch */ color: oklch(49.1% 0.128 259.0);
Tailwind
colors: {
  custom: {
    50: '#778bc2',
    500: '#305fa8',
    950: '#000000',
  },
}
SCSS
$custom: #305fa8;
$custom-light: #778bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#305fa8",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 216.5,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49101,
    "c": 0.12796,
    "h": 259
  },
  "luminance": 0.1164
}

Semantic roles & 50–950 ramp

primary
#305FA8
secondary
#C1A273
accent
#A449DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #305FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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