#315FC5#315FC5

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

Color values

HEX#315FC5
RGBrgb(49, 95, 197)
HSLhsl(221, 60%, 48%)
HSVhsv(221, 75%, 77%)
CMYKcmyk(75.1%, 51.8%, 0%, 22.7%)
CIE-LABlab(42.56, 20.36, -57.81)
CIE-LCHlch(42.56, 61.29, 289.40°)
OKLaboklab(51.19% -0.0193 -0.1664)
OKLCHoklch(51.19% 0.167 263.4)
XYZxyz(15.4333, 12.8669, 54.4827)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FC5 #C59731
analogous
#31A9C5 #315FC5 #4D31C5
triadic
#315FC5 #C5315F #5FC531
tetradic
#315FC5 #C531A9 #C59731 #31C54D
square
#315FC5 #C531A9 #C59731 #31C54D
split-complementary
#315FC5 #C54D31 #A9C531
monochromatic
#193063 #254794 #315FC5 #5D83D7 #8EA8E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315FC5#FFFFFF#000000##FFFFFF
##315FC51.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)
#1B6CC9
Deuteranopia (green-blind)
#005EC3
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #315fc5;
/* rgb */ color: rgb(49, 95, 197);
/* oklch */ color: oklch(51.2% 0.167 263.4);
Tailwind
colors: {
  custom: {
    50: '#7e8bd7',
    500: '#315fc5',
    950: '#000000',
  },
}
SCSS
$custom: #315fc5;
$custom-light: #7e8bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#315fc5",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 197
  },
  "hsl": {
    "h": 221.351,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51194,
    "c": 0.16749,
    "h": 263.4
  },
  "luminance": 0.12869
}

Semantic roles & 50–950 ramp

primary
#315FC5
secondary
#CDB785
accent
#B244E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #315FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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