#305AB5#305AB5

#305AB5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.152 H 263.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#305AB5
RGBrgb(48, 90, 181)
HSLhsl(221, 58%, 45%)
HSVhsv(221, 73%, 71%)
CMYKcmyk(73.5%, 50.3%, 0%, 29%)
CIE-LABlab(40.04, 17.46, -52.56)
CIE-LCHlch(40.04, 55.38, 288.37°)
OKLaboklab(48.91% -0.0178 -0.151)
OKLCHoklch(48.91% 0.152 263.3)
XYZxyz(13.2126, 11.2755, 45.1872)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AB5 #B58B30
analogous
#309CB5 #305AB5 #4930B5
triadic
#305AB5 #B5305A #5AB530
tetradic
#305AB5 #B5309C #B58B30 #30B549
square
#305AB5 #B5309C #B58B30 #30B549
split-complementary
#305AB5 #B54930 #9CB530
monochromatic
#162A54 #234285 #305AB5 #517AD1 #829FDE

Accessibility & contrast

On white

6.45
#305AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#305AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AB5
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AB5#FFFFFF#000000##FFFFFF
##305AB51.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2465B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305ab5;
/* rgb */ color: rgb(48, 90, 181);
/* oklch */ color: oklch(48.9% 0.152 263.3);
Tailwind
colors: {
  custom: {
    50: '#7a88cc',
    500: '#305ab5',
    950: '#000000',
  },
}
SCSS
$custom: #305ab5;
$custom-light: #7a88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#305ab5",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 181
  },
  "hsl": {
    "h": 221.053,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48912,
    "c": 0.15209,
    "h": 263.3
  },
  "luminance": 0.11277
}

Semantic roles & 50–950 ramp

primary
#305AB5
secondary
#C7AF7A
accent
#B046E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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