#315EC5#315EC5

#315EC5 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.0% C 0.169 H 263.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#315EC5
RGBrgb(49, 94, 197)
HSLhsl(222, 60%, 48%)
HSVhsv(222, 75%, 77%)
CMYKcmyk(75.1%, 52.3%, 0%, 22.7%)
CIE-LABlab(42.29, 21.00, -58.25)
CIE-LCHlch(42.29, 61.92, 289.83°)
OKLaboklab(50.99% -0.0185 -0.1677)
OKLCHoklch(50.99% 0.169 263.7)
XYZxyz(15.3438, 12.6879, 54.4528)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EC5 #C59831
analogous
#31A8C5 #315EC5 #4E31C5
triadic
#315EC5 #C5315E #5EC531
tetradic
#315EC5 #C531A8 #C59831 #31C54E
square
#315EC5 #C531A8 #C59831 #31C54E
split-complementary
#315EC5 #C54E31 #A8C531
monochromatic
#192F63 #254794 #315EC5 #5D82D7 #8EA8E3

Accessibility & contrast

On white

5.94
#315EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#315EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EC5
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EC5#FFFFFF#000000##FFFFFF
##315EC51.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166BC9
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #315ec5;
/* rgb */ color: rgb(49, 94, 197);
/* oklch */ color: oklch(51.0% 0.169 263.7);
Tailwind
colors: {
  custom: {
    50: '#7e8bd7',
    500: '#315ec5',
    950: '#000000',
  },
}
SCSS
$custom: #315ec5;
$custom-light: #7e8bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#315ec5",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 197
  },
  "hsl": {
    "h": 221.757,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50986,
    "c": 0.16872,
    "h": 263.7
  },
  "luminance": 0.1269
}

Semantic roles & 50–950 ramp

primary
#315EC5
secondary
#CDB785
accent
#B344E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #315EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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