#315DC5#315DC5

#315DC5 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.8% C 0.170 H 264.0°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#315DC5
RGBrgb(49, 93, 197)
HSLhsl(222, 60%, 48%)
HSVhsv(222, 75%, 77%)
CMYKcmyk(75.1%, 52.8%, 0%, 22.7%)
CIE-LABlab(42.02, 21.65, -58.69)
CIE-LCHlch(42.02, 62.56, 290.25°)
OKLaboklab(50.78% -0.0177 -0.169)
OKLCHoklch(50.78% 0.17 264)
XYZxyz(15.2554, 12.5112, 54.4234)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DC5 #C59931
analogous
#31A7C5 #315DC5 #4F31C5
triadic
#315DC5 #C5315D #5DC531
tetradic
#315DC5 #C531A7 #C59931 #31C54F
square
#315DC5 #C531A7 #C59931 #31C54F
split-complementary
#315DC5 #C54F31 #A7C531
monochromatic
#192F63 #254694 #315DC5 #5D81D7 #8EA7E3

Accessibility & contrast

On white

6.00
#315DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#315DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DC5
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DC5#FFFFFF#000000##FFFFFF
##315DC51.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116AC9
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315dc5;
/* rgb */ color: rgb(49, 93, 197);
/* oklch */ color: oklch(50.8% 0.170 264.0);
Tailwind
colors: {
  custom: {
    50: '#7e8ad7',
    500: '#315dc5',
    950: '#000000',
  },
}
SCSS
$custom: #315dc5;
$custom-light: #7e8ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#315dc5",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 197
  },
  "hsl": {
    "h": 222.162,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5078,
    "c": 0.16994,
    "h": 264
  },
  "luminance": 0.12513
}

Semantic roles & 50–950 ramp

primary
#315DC5
secondary
#CDB885
accent
#B444E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #315DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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