#316CC7#316CC7

#316CC7 is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.1% C 0.155 H 259.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#316CC7
RGBrgb(49, 108, 199)
HSLhsl(216, 60%, 49%)
HSVhsv(216, 75%, 78%)
CMYKcmyk(75.4%, 45.7%, 0%, 22%)
CIE-LABlab(46.31, 12.77, -52.92)
CIE-LCHlch(46.31, 54.44, 283.56°)
OKLaboklab(54.11% -0.0296 -0.1518)
OKLCHoklch(54.11% 0.155 259)
XYZxyz(16.9342, 15.4997, 56.1210)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316CC7 #C78C31
analogous
#31B7C7 #316CC7 #4131C7
triadic
#316CC7 #C7316C #6CC731
tetradic
#316CC7 #C731B7 #C78C31 #31C741
square
#316CC7 #C731B7 #C78C31 #31C741
split-complementary
#316CC7 #C74131 #B7C731
monochromatic
#193765 #255196 #316CC7 #5E8ED7 #8FB0E3

Accessibility & contrast

On white

5.12
#316CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#316CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316CC7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316CC7#FFFFFF#000000##FFFFFF
##316CC71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C75CA
Deuteranopia (green-blind)
#1A67C5
Tritanopia (blue-blind)
#008290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #316cc7;
/* rgb */ color: rgb(49, 108, 199);
/* oklch */ color: oklch(54.1% 0.155 259.0);
Tailwind
colors: {
  custom: {
    50: '#7e95d8',
    500: '#316cc7',
    950: '#000000',
  },
}
SCSS
$custom: #316cc7;
$custom-light: #7e95d8;
$custom-dark: #000000;
JSON
{
  "hex": "#316cc7",
  "rgb": {
    "r": 49,
    "g": 108,
    "b": 199
  },
  "hsl": {
    "h": 216.4,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.54107,
    "c": 0.15461,
    "h": 259
  },
  "luminance": 0.15502
}

Semantic roles & 50–950 ramp

primary
#316CC7
secondary
#CEB286
accent
#A544E4
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #316CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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