#305CB5#305CB5

#305CB5 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.150 H 262.5°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#305CB5
RGBrgb(48, 92, 181)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(73.5%, 49.2%, 0%, 29%)
CIE-LABlab(40.60, 16.15, -51.66)
CIE-LCHlch(40.60, 54.12, 287.36°)
OKLaboklab(49.34% -0.0195 -0.1483)
OKLCHoklch(49.34% 0.15 262.5)
XYZxyz(13.3836, 11.6174, 45.2441)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CB5 #B58930
analogous
#309FB5 #305CB5 #4630B5
triadic
#305CB5 #B5305C #5CB530
tetradic
#305CB5 #B5309F #B58930 #30B546
square
#305CB5 #B5309F #B58930 #30B546
split-complementary
#305CB5 #B54630 #9FB530
monochromatic
#162B54 #234385 #305CB5 #517CD1 #82A0DE

Accessibility & contrast

On white

6.32
#305CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#305CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CB5
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CB5#FFFFFF#000000##FFFFFF
##305CB51.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2966B8
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305cb5;
/* rgb */ color: rgb(48, 92, 181);
/* oklch */ color: oklch(49.3% 0.150 262.5);
Tailwind
colors: {
  custom: {
    50: '#7a89cc',
    500: '#305cb5',
    950: '#000000',
  },
}
SCSS
$custom: #305cb5;
$custom-light: #7a89cc;
$custom-dark: #000000;
JSON
{
  "hex": "#305cb5",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 181
  },
  "hsl": {
    "h": 220.15,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4934,
    "c": 0.14962,
    "h": 262.5
  },
  "luminance": 0.11619
}

Semantic roles & 50–950 ramp

primary
#305CB5
secondary
#C7AD7A
accent
#AE46E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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