#305BA4#305BA4

#305BA4 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 47.9% C 0.127 H 260.3°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#305BA4
RGBrgb(48, 91, 164)
HSLhsl(218, 55%, 42%)
HSVhsv(218, 71%, 64%)
CMYKcmyk(70.7%, 44.5%, 0%, 35.7%)
CIE-LABlab(39.22, 10.40, -43.83)
CIE-LCHlch(39.22, 45.04, 283.34°)
OKLaboklab(47.93% -0.0214 -0.1253)
OKLCHoklch(47.93% 0.127 260.3)
XYZxyz(11.6584, 10.7897, 36.5830)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BA4 #A47930
analogous
#3095A4 #305BA4 #3F30A4
triadic
#305BA4 #A4305B #5BA430
tetradic
#305BA4 #A43095 #A47930 #30A43F
square
#305BA4 #A43095 #A47930 #30A43F
split-complementary
#305BA4 #A43F30 #95A430
monochromatic
#142645 #224175 #305BA4 #4878C9 #779BD7

Accessibility & contrast

On white

6.65
#305BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#305BA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BA4
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BA4#FFFFFF#000000##FFFFFF
##305BA41.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3762A7
Deuteranopia (green-blind)
#2257A3
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #305ba4;
/* rgb */ color: rgb(48, 91, 164);
/* oklch */ color: oklch(47.9% 0.127 260.3);
Tailwind
colors: {
  custom: {
    50: '#7688bf',
    500: '#305ba4',
    950: '#000000',
  },
}
SCSS
$custom: #305ba4;
$custom-light: #7688bf;
$custom-dark: #000000;
JSON
{
  "hex": "#305ba4",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 164
  },
  "hsl": {
    "h": 217.759,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47931,
    "c": 0.12714,
    "h": 260.3
  },
  "luminance": 0.10791
}

Semantic roles & 50–950 ramp

primary
#305BA4
secondary
#BFA270
accent
#A74ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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