#305CC5#305CC5

#305CC5 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.5% C 0.171 H 264.1°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#305CC5
RGBrgb(48, 92, 197)
HSLhsl(222, 61%, 48%)
HSVhsv(222, 76%, 77%)
CMYKcmyk(75.6%, 53.3%, 0%, 22.7%)
CIE-LABlab(41.71, 22.18, -59.20)
CIE-LCHlch(41.71, 63.21, 290.54°)
OKLaboklab(50.54% -0.0177 -0.1705)
OKLCHoklch(50.54% 0.171 264.1)
XYZxyz(15.1205, 12.3122, 54.3921)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CC5 #C59930
analogous
#30A6C5 #305CC5 #4F30C5
triadic
#305CC5 #C5305C #5CC530
tetradic
#305CC5 #C530A6 #C59930 #30C54F
square
#305CC5 #C530A6 #C59930 #30C54F
split-complementary
#305CC5 #C54F30 #A6C530
monochromatic
#182E63 #244594 #305CC5 #5B80D7 #8CA6E3

Accessibility & contrast

On white

6.06
#305CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#305CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CC5
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CC5#FFFFFF#000000##FFFFFF
##305CC51.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#096AC9
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #305cc5;
/* rgb */ color: rgb(48, 92, 197);
/* oklch */ color: oklch(50.5% 0.171 264.1);
Tailwind
colors: {
  custom: {
    50: '#7e89d7',
    500: '#305cc5',
    950: '#000000',
  },
}
SCSS
$custom: #305cc5;
$custom-light: #7e89d7;
$custom-dark: #000000;
JSON
{
  "hex": "#305cc5",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 197
  },
  "hsl": {
    "h": 222.282,
    "s": 60.816,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50535,
    "c": 0.17145,
    "h": 264.1
  },
  "luminance": 0.12314
}

Semantic roles & 50–950 ramp

primary
#305CC5
secondary
#CDB784
accent
#B544E4
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #305CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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