#3170B9#3170B9

#3170B9 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 54.1% C 0.131 H 254.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#3170B9
RGBrgb(49, 112, 185)
HSLhsl(212, 58%, 46%)
HSVhsv(212, 74%, 73%)
CMYKcmyk(73.5%, 39.5%, 0%, 27.5%)
CIE-LABlab(46.63, 5.03, -44.32)
CIE-LCHlch(46.63, 44.61, 276.47°)
OKLaboklab(54.09% -0.036 -0.1264)
OKLCHoklch(54.09% 0.131 254.1)
XYZxyz(15.8145, 15.7423, 48.0946)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3170B9 #B97A31
analogous
#31B4B9 #3170B9 #3631B9
triadic
#3170B9 #B93170 #70B931
tetradic
#3170B9 #B931B4 #B97A31 #31B936
square
#3170B9 #B931B4 #B97A31 #31B936
split-complementary
#3170B9 #B93631 #B4B931
monochromatic
#173558 #245389 #3170B9 #558FD2 #86AFDF

Accessibility & contrast

On white

5.06
#3170B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#3170B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3170B9
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3170B9#FFFFFF#000000##FFFFFF
##3170B91.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E75BC
Deuteranopia (green-blind)
#3869B8
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3170b9;
/* rgb */ color: rgb(49, 112, 185);
/* oklch */ color: oklch(54.1% 0.131 254.1);
Tailwind
colors: {
  custom: {
    50: '#7b98ce',
    500: '#3170b9',
    950: '#000000',
  },
}
SCSS
$custom: #3170b9;
$custom-light: #7b98ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3170b9",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 185
  },
  "hsl": {
    "h": 212.206,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5409,
    "c": 0.13145,
    "h": 254.1
  },
  "luminance": 0.15744
}

Semantic roles & 50–950 ramp

primary
#3170B9
secondary
#C8A67D
accent
#9A46E1
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #3170B9

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

Preview Lab → · Contrast checker → · Palette generator →

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