#305AA6#305AA6

#305AA6 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.8% C 0.131 H 261.2°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#305AA6
RGBrgb(48, 90, 166)
HSLhsl(219, 55%, 42%)
HSVhsv(219, 71%, 65%)
CMYKcmyk(71.1%, 45.8%, 0%, 34.9%)
CIE-LABlab(39.06, 11.80, -45.28)
CIE-LCHlch(39.06, 46.79, 284.61°)
OKLaboklab(47.84% -0.0201 -0.1296)
OKLCHoklch(47.84% 0.131 261.2)
XYZxyz(11.7556, 10.6927, 37.5134)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AA6 #A67C30
analogous
#3095A6 #305AA6 #4130A6
triadic
#305AA6 #A6305A #5AA630
tetradic
#305AA6 #A63095 #A67C30 #30A641
square
#305AA6 #A63095 #A67C30 #30A641
split-complementary
#305AA6 #A64130 #95A630
monochromatic
#152747 #224077 #305AA6 #4977CA #789AD8

Accessibility & contrast

On white

6.69
#305AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305AA6
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AA6#FFFFFF#000000##FFFFFF
##305AA61.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A9
Deuteranopia (green-blind)
#1C57A4
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #305aa6;
/* rgb */ color: rgb(48, 90, 166);
/* oklch */ color: oklch(47.8% 0.131 261.2);
Tailwind
colors: {
  custom: {
    50: '#7788c1',
    500: '#305aa6',
    950: '#000000',
  },
}
SCSS
$custom: #305aa6;
$custom-light: #7788c1;
$custom-dark: #000000;
JSON
{
  "hex": "#305aa6",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 166
  },
  "hsl": {
    "h": 218.644,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47843,
    "c": 0.13117,
    "h": 261.2
  },
  "luminance": 0.10694
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #305AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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