#316EC5#316EC5

#316EC5 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.4% C 0.150 H 257.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#316EC5
RGBrgb(49, 110, 197)
HSLhsl(215, 60%, 48%)
HSVhsv(215, 75%, 77%)
CMYKcmyk(75.1%, 44.2%, 0%, 22.7%)
CIE-LABlab(46.76, 10.75, -51.06)
CIE-LCHlch(46.76, 52.18, 281.89°)
OKLaboklab(54.41% -0.0316 -0.1462)
OKLCHoklch(54.41% 0.15 257.8)
XYZxyz(16.9169, 15.8341, 54.9772)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316EC5 #C58831
analogous
#31B8C5 #316EC5 #3E31C5
triadic
#316EC5 #C5316E #6EC531
tetradic
#316EC5 #C531B8 #C58831 #31C53E
square
#316EC5 #C531B8 #C58831 #31C53E
split-complementary
#316EC5 #C53E31 #B8C531
monochromatic
#193763 #255394 #316EC5 #5D8FD7 #8EB1E3

Accessibility & contrast

On white

5.04
#316EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#316EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316EC5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316EC5#FFFFFF#000000##FFFFFF
##316EC51.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4276C8
Deuteranopia (green-blind)
#2569C3
Tritanopia (blue-blind)
#008390
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #316ec5;
/* rgb */ color: rgb(49, 110, 197);
/* oklch */ color: oklch(54.4% 0.150 257.8);
Tailwind
colors: {
  custom: {
    50: '#7d97d7',
    500: '#316ec5',
    950: '#000000',
  },
}
SCSS
$custom: #316ec5;
$custom-light: #7d97d7;
$custom-dark: #000000;
JSON
{
  "hex": "#316ec5",
  "rgb": {
    "r": 49,
    "g": 110,
    "b": 197
  },
  "hsl": {
    "h": 215.27,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.54411,
    "c": 0.14962,
    "h": 257.8
  },
  "luminance": 0.15836
}

Semantic roles & 50–950 ramp

primary
#316EC5
secondary
#CDAF85
accent
#A244E3
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #316EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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