#305BA5#305BA5

#305BA5 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.0% C 0.129 H 260.5°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#305BA5
RGBrgb(48, 91, 165)
HSLhsl(218, 55%, 42%)
HSVhsv(218, 71%, 65%)
CMYKcmyk(70.9%, 44.8%, 0%, 35.3%)
CIE-LABlab(39.29, 10.77, -44.32)
CIE-LCHlch(39.29, 45.61, 283.66°)
OKLaboklab(48% -0.0213 -0.1268)
OKLCHoklch(48% 0.129 260.5)
XYZxyz(11.7491, 10.8259, 37.0604)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BA5 #A57A30
analogous
#3096A5 #305BA5 #4030A5
triadic
#305BA5 #A5305B #5BA530
tetradic
#305BA5 #A53096 #A57A30 #30A540
square
#305BA5 #A53096 #A57A30 #30A540
split-complementary
#305BA5 #A54030 #96A530
monochromatic
#142746 #224176 #305BA5 #4878CA #789BD8

Accessibility & contrast

On white

6.63
#305BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305BA5
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BA5#FFFFFF#000000##FFFFFF
##305BA51.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3662A8
Deuteranopia (green-blind)
#2158A3
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #305ba5;
/* rgb */ color: rgb(48, 91, 165);
/* oklch */ color: oklch(48.0% 0.129 260.5);
Tailwind
colors: {
  custom: {
    50: '#7788c0',
    500: '#305ba5',
    950: '#000000',
  },
}
SCSS
$custom: #305ba5;
$custom-light: #7788c0;
$custom-dark: #000000;
JSON
{
  "hex": "#305ba5",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 165
  },
  "hsl": {
    "h": 217.949,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47999,
    "c": 0.12855,
    "h": 260.5
  },
  "luminance": 0.10827
}

Semantic roles & 50–950 ramp

primary
#305BA5
secondary
#C0A371
accent
#A84ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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