#305BC7#305BC7

#305BC7 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.5% C 0.175 H 264.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#305BC7
RGBrgb(48, 91, 199)
HSLhsl(223, 61%, 48%)
HSVhsv(223, 76%, 78%)
CMYKcmyk(75.9%, 54.3%, 0%, 22%)
CIE-LABlab(41.58, 23.58, -60.56)
CIE-LCHlch(41.58, 64.99, 291.28°)
OKLaboklab(50.49% -0.0168 -0.1745)
OKLCHoklch(50.49% 0.175 264.5)
XYZxyz(15.2652, 12.2324, 55.5783)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BC7 #C79C30
analogous
#30A6C7 #305BC7 #5030C7
triadic
#305BC7 #C7305B #5BC730
tetradic
#305BC7 #C730A6 #C79C30 #30C750
square
#305BC7 #C730A6 #C79C30 #30C750
split-complementary
#305BC7 #C75030 #A6C730
monochromatic
#182E64 #244496 #305BC7 #5C80D8 #8EA6E4

Accessibility & contrast

On white

6.09
#305BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#305BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BC7
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BC7#FFFFFF#000000##FFFFFF
##305BC71.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #305bc7;
/* rgb */ color: rgb(48, 91, 199);
/* oklch */ color: oklch(50.5% 0.175 264.5);
Tailwind
colors: {
  custom: {
    50: '#7e88d9',
    500: '#305bc7',
    950: '#000000',
  },
}
SCSS
$custom: #305bc7;
$custom-light: #7e88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#305bc7",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 222.914,
    "s": 61.134,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50486,
    "c": 0.17536,
    "h": 264.5
  },
  "luminance": 0.12234
}

Semantic roles & 50–950 ramp

primary
#305BC7
secondary
#CEB985
accent
#B644E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #305BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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