#305DB7#305DB7

#305DB7 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.151 H 262.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#305DB7
RGBrgb(48, 93, 183)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 74%, 72%)
CMYKcmyk(73.8%, 49.2%, 0%, 28.2%)
CIE-LABlab(41.02, 16.26, -52.16)
CIE-LCHlch(41.02, 54.63, 287.31°)
OKLaboklab(49.7% -0.0201 -0.1498)
OKLCHoklch(49.7% 0.151 262.4)
XYZxyz(13.6775, 11.8745, 46.3617)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DB7 #B78A30
analogous
#30A0B7 #305DB7 #4630B7
triadic
#305DB7 #B7305D #5DB730
tetradic
#305DB7 #B730A0 #B78A30 #30B746
square
#305DB7 #B730A0 #B78A30 #30B746
split-complementary
#305DB7 #B74630 #A0B730
monochromatic
#172C56 #234487 #305DB7 #527DD2 #83A1DE

Accessibility & contrast

On white

6.22
#305DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#305DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DB7
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DB7#FFFFFF#000000##FFFFFF
##305DB71.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A67BA
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305db7;
/* rgb */ color: rgb(48, 93, 183);
/* oklch */ color: oklch(49.7% 0.151 262.4);
Tailwind
colors: {
  custom: {
    50: '#7a8acd',
    500: '#305db7',
    950: '#000000',
  },
}
SCSS
$custom: #305db7;
$custom-light: #7a8acd;
$custom-dark: #000000;
JSON
{
  "hex": "#305db7",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 183
  },
  "hsl": {
    "h": 220,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.497,
    "c": 0.15116,
    "h": 262.4
  },
  "luminance": 0.11876
}

Semantic roles & 50–950 ramp

primary
#305DB7
secondary
#C8AE7B
accent
#AE46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #305DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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