#305BA6#305BA6

#305BA6 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.1% C 0.130 H 260.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#305BA6
RGBrgb(48, 91, 166)
HSLhsl(218, 55%, 42%)
HSVhsv(218, 71%, 65%)
CMYKcmyk(71.1%, 45.2%, 0%, 34.9%)
CIE-LABlab(39.35, 11.15, -44.82)
CIE-LCHlch(39.35, 46.18, 283.97°)
OKLaboklab(48.07% -0.0211 -0.1282)
OKLCHoklch(48.07% 0.13 260.7)
XYZxyz(11.8405, 10.8625, 37.5417)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BA6 #A67B30
analogous
#3096A6 #305BA6 #4030A6
triadic
#305BA6 #A6305B #5BA630
tetradic
#305BA6 #A63096 #A67B30 #30A640
square
#305BA6 #A63096 #A67B30 #30A640
split-complementary
#305BA6 #A64030 #96A630
monochromatic
#152747 #224177 #305BA6 #4978CA #789BD8

Accessibility & contrast

On white

6.62
#305BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#305BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BA6
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BA6#FFFFFF#000000##FFFFFF
##305BA61.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3663A9
Deuteranopia (green-blind)
#1F58A4
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #305ba6;
/* rgb */ color: rgb(48, 91, 166);
/* oklch */ color: oklch(48.1% 0.130 260.7);
Tailwind
colors: {
  custom: {
    50: '#7788c1',
    500: '#305ba6',
    950: '#000000',
  },
}
SCSS
$custom: #305ba6;
$custom-light: #7788c1;
$custom-dark: #000000;
JSON
{
  "hex": "#305ba6",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 166
  },
  "hsl": {
    "h": 218.136,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48067,
    "c": 0.12996,
    "h": 260.7
  },
  "luminance": 0.10864
}

Semantic roles & 50–950 ramp

primary
#305BA6
secondary
#C0A471
accent
#A849DE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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