#3170BA#3170BA

#3170BA is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.2% C 0.133 H 254.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#3170BA
RGBrgb(49, 112, 186)
HSLhsl(212, 58%, 46%)
HSVhsv(212, 74%, 73%)
CMYKcmyk(73.7%, 39.8%, 0%, 27.1%)
CIE-LABlab(46.69, 5.40, -44.81)
CIE-LCHlch(46.69, 45.14, 276.87°)
OKLaboklab(54.15% -0.0357 -0.1279)
OKLCHoklch(54.15% 0.133 254.4)
XYZxyz(15.9204, 15.7847, 48.6526)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3170BA #BA7B31
analogous
#31B4BA #3170BA #3631BA
triadic
#3170BA #BA3170 #70BA31
tetradic
#3170BA #BA31B4 #BA7B31 #31BA36
square
#3170BA #BA31B4 #BA7B31 #31BA36
split-complementary
#3170BA #BA3631 #B4BA31
monochromatic
#173659 #24538A #3170BA #568FD2 #86AFDF

Accessibility & contrast

On white

5.05
#3170BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#3170BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3170BA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3170BA#FFFFFF#000000##FFFFFF
##3170BA1.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)
#4D76BD
Deuteranopia (green-blind)
#3769B9
Tritanopia (blue-blind)
#00818C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3170ba;
/* rgb */ color: rgb(49, 112, 186);
/* oklch */ color: oklch(54.2% 0.133 254.4);
Tailwind
colors: {
  custom: {
    50: '#7b98cf',
    500: '#3170ba',
    950: '#000000',
  },
}
SCSS
$custom: #3170ba;
$custom-light: #7b98cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3170ba",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 186
  },
  "hsl": {
    "h": 212.409,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54152,
    "c": 0.13276,
    "h": 254.4
  },
  "luminance": 0.15786
}

Semantic roles & 50–950 ramp

primary
#3170BA
secondary
#C9A67E
accent
#9A46E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #3170BA

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

Preview Lab → · Contrast checker → · Palette generator →

#3170BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva