#316EB5#316EB5

#316EB5 is a mid, vivid cyan. Relative luminance 0.151; OKLCH L 53.4% C 0.128 H 254.1°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#316EB5
RGBrgb(49, 110, 181)
HSLhsl(212, 57%, 45%)
HSVhsv(212, 73%, 71%)
CMYKcmyk(72.9%, 39.2%, 0%, 29%)
CIE-LABlab(45.82, 4.79, -43.29)
CIE-LCHlch(45.82, 43.56, 276.32°)
OKLaboklab(53.39% -0.0351 -0.1234)
OKLCHoklch(53.39% 0.128 254.1)
XYZxyz(15.1800, 15.1393, 45.8293)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316EB5 #B57831
analogous
#31B0B5 #316EB5 #3631B5
triadic
#316EB5 #B5316E #6EB531
tetradic
#316EB5 #B531B0 #B57831 #31B536
square
#316EB5 #B531B0 #B57831 #31B536
split-complementary
#316EB5 #B53631 #B0B531
monochromatic
#173355 #245185 #316EB5 #538DD0 #83ADDD

Accessibility & contrast

On white

5.21
#316EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#316EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316EB5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316EB5#FFFFFF#000000##FFFFFF
##316EB51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D73B8
Deuteranopia (green-blind)
#3867B4
Tritanopia (blue-blind)
#007F89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #316eb5;
/* rgb */ color: rgb(49, 110, 181);
/* oklch */ color: oklch(53.4% 0.128 254.1);
Tailwind
colors: {
  custom: {
    50: '#7a97cb',
    500: '#316eb5',
    950: '#000000',
  },
}
SCSS
$custom: #316eb5;
$custom-light: #7a97cb;
$custom-dark: #000000;
JSON
{
  "hex": "#316eb5",
  "rgb": {
    "r": 49,
    "g": 110,
    "b": 181
  },
  "hsl": {
    "h": 212.273,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53386,
    "c": 0.12831,
    "h": 254.1
  },
  "luminance": 0.15141
}

Semantic roles & 50–950 ramp

primary
#316EB5
secondary
#C7A47B
accent
#9A47E1
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #316EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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