#316EC4#316EC4

#316EC4 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.3% C 0.148 H 257.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#316EC4
RGBrgb(49, 110, 196)
HSLhsl(215, 60%, 48%)
HSVhsv(215, 75%, 77%)
CMYKcmyk(75%, 43.9%, 0%, 23.1%)
CIE-LABlab(46.70, 10.38, -50.58)
CIE-LCHlch(46.70, 51.63, 281.60°)
OKLaboklab(54.35% -0.0318 -0.1448)
OKLCHoklch(54.35% 0.148 257.6)
XYZxyz(16.8027, 15.7884, 54.3758)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316EC4 #C48731
analogous
#31B7C4 #316EC4 #3D31C4
triadic
#316EC4 #C4316E #6EC431
tetradic
#316EC4 #C431B7 #C48731 #31C43D
square
#316EC4 #C431B7 #C48731 #31C43D
split-complementary
#316EC4 #C43D31 #B7C431
monochromatic
#193762 #255393 #316EC4 #5C8FD6 #8DB0E2

Accessibility & contrast

On white

5.05
#316EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#316EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316EC4
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316EC4#FFFFFF#000000##FFFFFF
##316EC41.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4376C7
Deuteranopia (green-blind)
#2668C2
Tritanopia (blue-blind)
#00828F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #316ec4;
/* rgb */ color: rgb(49, 110, 196);
/* oklch */ color: oklch(54.3% 0.148 257.6);
Tailwind
colors: {
  custom: {
    50: '#7d97d6',
    500: '#316ec4',
    950: '#000000',
  },
}
SCSS
$custom: #316ec4;
$custom-light: #7d97d6;
$custom-dark: #000000;
JSON
{
  "hex": "#316ec4",
  "rgb": {
    "r": 49,
    "g": 110,
    "b": 196
  },
  "hsl": {
    "h": 215.102,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54345,
    "c": 0.14828,
    "h": 257.6
  },
  "luminance": 0.1579
}

Semantic roles & 50–950 ramp

primary
#316EC4
secondary
#CDAF84
accent
#A145E3
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #316EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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