#305FC3#305FC3

#305FC3 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.0% C 0.165 H 263.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#305FC3
RGBrgb(48, 95, 195)
HSLhsl(221, 60%, 48%)
HSVhsv(221, 75%, 76%)
CMYKcmyk(75.4%, 51.3%, 0%, 23.5%)
CIE-LABlab(42.39, 19.48, -56.94)
CIE-LCHlch(42.39, 60.18, 288.89°)
OKLaboklab(51.01% -0.0202 -0.1638)
OKLCHoklch(51.01% 0.165 263)
XYZxyz(15.1579, 12.7512, 53.2815)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FC3 #C39430
analogous
#30A9C3 #305FC3 #4A30C3
triadic
#305FC3 #C3305F #5FC330
tetradic
#305FC3 #C330A9 #C39430 #30C34A
square
#305FC3 #C330A9 #C39430 #30C34A
split-complementary
#305FC3 #C34A30 #A9C330
monochromatic
#182F61 #244792 #305FC3 #5A82D6 #8BA7E2

Accessibility & contrast

On white

5.91
#305FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#305FC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FC3
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FC3#FFFFFF#000000##FFFFFF
##305FC31.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E6BC7
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #305fc3;
/* rgb */ color: rgb(48, 95, 195);
/* oklch */ color: oklch(51.0% 0.165 263.0);
Tailwind
colors: {
  custom: {
    50: '#7d8bd6',
    500: '#305fc3',
    950: '#000000',
  },
}
SCSS
$custom: #305fc3;
$custom-light: #7d8bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#305fc3",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 195
  },
  "hsl": {
    "h": 220.816,
    "s": 60.494,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51005,
    "c": 0.16508,
    "h": 263
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#305FC3
secondary
#CCB582
accent
#B144E4
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #305FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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