#316CC4#316CC4

#316CC4 is a mid, vivid blue. Relative luminance 0.154; OKLCH L 53.9% C 0.151 H 258.5°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#316CC4
RGBrgb(49, 108, 196)
HSLhsl(216, 60%, 48%)
HSVhsv(216, 75%, 77%)
CMYKcmyk(75%, 44.9%, 0%, 23.1%)
CIE-LABlab(46.13, 11.64, -51.49)
CIE-LCHlch(46.13, 52.79, 282.74°)
OKLaboklab(53.9% -0.0301 -0.1476)
OKLCHoklch(53.9% 0.151 258.5)
XYZxyz(16.5894, 15.3617, 54.3047)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316CC4 #C48931
analogous
#31B6C4 #316CC4 #3F31C4
triadic
#316CC4 #C4316C #6CC431
tetradic
#316CC4 #C431B6 #C48931 #31C43F
square
#316CC4 #C431B6 #C48931 #31C43F
split-complementary
#316CC4 #C43F31 #B6C431
monochromatic
#193662 #255193 #316CC4 #5C8DD6 #8DAFE2

Accessibility & contrast

On white

5.16
#316CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#316CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316CC4
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316CC4#FFFFFF#000000##FFFFFF
##316CC41.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F74C7
Deuteranopia (green-blind)
#2067C2
Tritanopia (blue-blind)
#00818E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #316cc4;
/* rgb */ color: rgb(49, 108, 196);
/* oklch */ color: oklch(53.9% 0.151 258.5);
Tailwind
colors: {
  custom: {
    50: '#7d95d6',
    500: '#316cc4',
    950: '#000000',
  },
}
SCSS
$custom: #316cc4;
$custom-light: #7d95d6;
$custom-dark: #000000;
JSON
{
  "hex": "#316cc4",
  "rgb": {
    "r": 49,
    "g": 108,
    "b": 196
  },
  "hsl": {
    "h": 215.918,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53904,
    "c": 0.1506,
    "h": 258.5
  },
  "luminance": 0.15364
}

Semantic roles & 50–950 ramp

primary
#316CC4
secondary
#CDB084
accent
#A445E3
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #316CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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