#316DB2#316DB2

#316DB2 is a mid, vivid cyan. Relative luminance 0.148; OKLCH L 53.0% C 0.125 H 253.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#316DB2
RGBrgb(49, 109, 178)
HSLhsl(212, 57%, 45%)
HSVhsv(212, 72%, 70%)
CMYKcmyk(72.5%, 38.8%, 0%, 30.2%)
CIE-LABlab(45.36, 4.31, -42.28)
CIE-LCHlch(45.36, 42.50, 275.82°)
OKLaboklab(52.97% -0.0348 -0.1205)
OKLCHoklch(52.97% 0.125 253.9)
XYZxyz(14.7682, 14.8030, 44.1898)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316DB2 #B27631
analogous
#31AEB2 #316DB2 #3631B2
triadic
#316DB2 #B2316D #6DB231
tetradic
#316DB2 #B231AE #B27631 #31B236
square
#316DB2 #B231AE #B27631 #31B236
split-complementary
#316DB2 #B23631 #AEB231
monochromatic
#173252 #245082 #316DB2 #518CCF #81ACDC

Accessibility & contrast

On white

5.30
#316DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#316DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316DB2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316DB2#FFFFFF#000000##FFFFFF
##316DB21.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D72B5
Deuteranopia (green-blind)
#3966B1
Tritanopia (blue-blind)
#007D87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #316db2;
/* rgb */ color: rgb(49, 109, 178);
/* oklch */ color: oklch(53.0% 0.125 253.9);
Tailwind
colors: {
  custom: {
    50: '#7996c9',
    500: '#316db2',
    950: '#000000',
  },
}
SCSS
$custom: #316db2;
$custom-light: #7996c9;
$custom-dark: #000000;
JSON
{
  "hex": "#316db2",
  "rgb": {
    "r": 49,
    "g": 109,
    "b": 178
  },
  "hsl": {
    "h": 212.093,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52972,
    "c": 0.12541,
    "h": 253.9
  },
  "luminance": 0.14805
}

Semantic roles & 50–950 ramp

primary
#316DB2
secondary
#C5A279
accent
#9948E0
background
#F7F9FC
surface
#EEF1F8
border
#C9CBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #316DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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