#316AC7#316AC7

#316AC7 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 53.7% C 0.157 H 259.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#316AC7
RGBrgb(49, 106, 199)
HSLhsl(217, 60%, 49%)
HSVhsv(217, 75%, 78%)
CMYKcmyk(75.4%, 46.7%, 0%, 22%)
CIE-LABlab(45.75, 14.04, -53.83)
CIE-LCHlch(45.75, 55.63, 284.62°)
OKLaboklab(53.67% -0.0279 -0.1545)
OKLCHoklch(53.67% 0.157 259.8)
XYZxyz(16.7257, 15.0827, 56.0515)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316AC7 #C78E31
analogous
#31B5C7 #316AC7 #4331C7
triadic
#316AC7 #C7316A #6AC731
tetradic
#316AC7 #C731B5 #C78E31 #31C743
square
#316AC7 #C731B5 #C78E31 #31C743
split-complementary
#316AC7 #C74331 #B5C731
monochromatic
#193665 #255096 #316AC7 #5E8CD7 #8FAFE3

Accessibility & contrast

On white

5.23
#316AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#316AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316AC7
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316AC7#FFFFFF#000000##FFFFFF
##316AC71.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3874CA
Deuteranopia (green-blind)
#1066C5
Tritanopia (blue-blind)
#00808F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #316ac7;
/* rgb */ color: rgb(49, 106, 199);
/* oklch */ color: oklch(53.7% 0.157 259.8);
Tailwind
colors: {
  custom: {
    50: '#7e94d8',
    500: '#316ac7',
    950: '#000000',
  },
}
SCSS
$custom: #316ac7;
$custom-light: #7e94d8;
$custom-dark: #000000;
JSON
{
  "hex": "#316ac7",
  "rgb": {
    "r": 49,
    "g": 106,
    "b": 199
  },
  "hsl": {
    "h": 217.2,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.53673,
    "c": 0.15696,
    "h": 259.8
  },
  "luminance": 0.15085
}

Semantic roles & 50–950 ramp

primary
#316AC7
secondary
#CEB386
accent
#A744E4
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #316AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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