#305BA7#305BA7

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

Color values

HEX#305BA7
RGBrgb(48, 91, 167)
HSLhsl(218, 55%, 42%)
HSVhsv(218, 71%, 65%)
CMYKcmyk(71.3%, 45.5%, 0%, 34.5%)
CIE-LABlab(39.41, 11.52, -45.31)
CIE-LCHlch(39.41, 46.75, 284.27°)
OKLaboklab(48.14% -0.0209 -0.1297)
OKLCHoklch(48.14% 0.131 260.9)
XYZxyz(11.9326, 10.8993, 38.0266)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BA7 #A77C30
analogous
#3097A7 #305BA7 #4030A7
triadic
#305BA7 #A7305B #5BA730
tetradic
#305BA7 #A73097 #A77C30 #30A740
square
#305BA7 #A73097 #A77C30 #30A740
split-complementary
#305BA7 #A74030 #97A730
monochromatic
#152748 #224177 #305BA7 #4978CB #799BD8

Accessibility & contrast

On white

6.60
#305BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#305BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BA7
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BA7#FFFFFF#000000##FFFFFF
##305BA71.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3563AA
Deuteranopia (green-blind)
#1E58A5
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #305ba7;
/* rgb */ color: rgb(48, 91, 167);
/* oklch */ color: oklch(48.1% 0.131 260.9);
Tailwind
colors: {
  custom: {
    50: '#7788c2',
    500: '#305ba7',
    950: '#000000',
  },
}
SCSS
$custom: #305ba7;
$custom-light: #7788c2;
$custom-dark: #000000;
JSON
{
  "hex": "#305ba7",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 167
  },
  "hsl": {
    "h": 218.319,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48135,
    "c": 0.13136,
    "h": 260.9
  },
  "luminance": 0.10901
}

Semantic roles & 50–950 ramp

primary
#305BA7
secondary
#C1A472
accent
#A949DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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