#316CB2#316CB2

#316CB2 is a mid, vivid cyan. Relative luminance 0.146; OKLCH L 52.7% C 0.126 H 254.5°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#316CB2
RGBrgb(49, 108, 178)
HSLhsl(213, 57%, 45%)
HSVhsv(213, 72%, 70%)
CMYKcmyk(72.5%, 39.3%, 0%, 30.2%)
CIE-LABlab(45.07, 4.93, -42.75)
CIE-LCHlch(45.07, 43.03, 276.58°)
OKLaboklab(52.74% -0.0339 -0.1219)
OKLCHoklch(52.74% 0.126 254.5)
XYZxyz(14.6621, 14.5908, 44.1544)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316CB2 #B27731
analogous
#31ADB2 #316CB2 #3731B2
triadic
#316CB2 #B2316C #6CB231
tetradic
#316CB2 #B231AD #B27731 #31B237
square
#316CB2 #B231AD #B27731 #31B237
split-complementary
#316CB2 #B23731 #ADB231
monochromatic
#173252 #244F82 #316CB2 #518BCF #81ABDC

Accessibility & contrast

On white

5.36
#316CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#316CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316CB2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316CB2#FFFFFF#000000##FFFFFF
##316CB21.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C71B5
Deuteranopia (green-blind)
#3765B1
Tritanopia (blue-blind)
#007C86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #316cb2;
/* rgb */ color: rgb(49, 108, 178);
/* oklch */ color: oklch(52.7% 0.126 254.5);
Tailwind
colors: {
  custom: {
    50: '#7995c9',
    500: '#316cb2',
    950: '#000000',
  },
}
SCSS
$custom: #316cb2;
$custom-light: #7995c9;
$custom-dark: #000000;
JSON
{
  "hex": "#316cb2",
  "rgb": {
    "r": 49,
    "g": 108,
    "b": 178
  },
  "hsl": {
    "h": 212.558,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52742,
    "c": 0.12648,
    "h": 254.5
  },
  "luminance": 0.14592
}

Semantic roles & 50–950 ramp

primary
#316CB2
secondary
#C5A379
accent
#9A48E0
background
#F7F9FC
surface
#EEF1F8
border
#C9CBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #316CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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