#305FC5#305FC5

#305FC5 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.2% C 0.168 H 263.1°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#305FC5
RGBrgb(48, 95, 197)
HSLhsl(221, 61%, 48%)
HSVhsv(221, 76%, 77%)
CMYKcmyk(75.6%, 51.8%, 0%, 22.7%)
CIE-LABlab(42.52, 20.24, -57.87)
CIE-LCHlch(42.52, 61.31, 289.27°)
OKLaboklab(51.15% -0.02 -0.1666)
OKLCHoklch(51.15% 0.168 263.1)
XYZxyz(15.3856, 12.8423, 54.4804)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FC5 #C59630
analogous
#30A9C5 #305FC5 #4C30C5
triadic
#305FC5 #C5305F #5FC530
tetradic
#305FC5 #C530A9 #C59630 #30C54C
square
#305FC5 #C530A9 #C59630 #30C54C
split-complementary
#305FC5 #C54C30 #A9C530
monochromatic
#183063 #244794 #305FC5 #5B82D7 #8CA8E3

Accessibility & contrast

On white

5.88
#305FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#305FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FC5
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FC5#FFFFFF#000000##FFFFFF
##305FC51.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6CC9
Deuteranopia (green-blind)
#005EC3
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #305fc5;
/* rgb */ color: rgb(48, 95, 197);
/* oklch */ color: oklch(51.2% 0.168 263.1);
Tailwind
colors: {
  custom: {
    50: '#7d8bd7',
    500: '#305fc5',
    950: '#000000',
  },
}
SCSS
$custom: #305fc5;
$custom-light: #7d8bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#305fc5",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 197
  },
  "hsl": {
    "h": 221.074,
    "s": 60.816,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51155,
    "c": 0.16778,
    "h": 263.1
  },
  "luminance": 0.12844
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #305FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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