#3170B2#3170B2

#3170B2 is a mid, vivid cyan. Relative luminance 0.155; OKLCH L 53.7% C 0.122 H 252.0°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#3170B2
RGBrgb(49, 112, 178)
HSLhsl(211, 57%, 45%)
HSVhsv(211, 72%, 70%)
CMYKcmyk(72.5%, 37.1%, 0%, 30.2%)
CIE-LABlab(46.25, 2.44, -40.87)
CIE-LCHlch(46.25, 40.94, 273.42°)
OKLaboklab(53.67% -0.0377 -0.1163)
OKLCHoklch(53.67% 0.122 252)
XYZxyz(15.0937, 15.4540, 44.2983)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3170B2 #B27331
analogous
#31B0B2 #3170B2 #3331B2
triadic
#3170B2 #B23170 #70B231
tetradic
#3170B2 #B231B0 #B27331 #31B233
square
#3170B2 #B231B0 #B27331 #31B233
split-complementary
#3170B2 #B23331 #B0B231
monochromatic
#173452 #245282 #3170B2 #518FCF #81AEDC

Accessibility & contrast

On white

5.13
#3170B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#3170B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3170B2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3170B2#FFFFFF#000000##FFFFFF
##3170B21.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5274B5
Deuteranopia (green-blind)
#3F68B1
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3170b2;
/* rgb */ color: rgb(49, 112, 178);
/* oklch */ color: oklch(53.7% 0.122 252.0);
Tailwind
colors: {
  custom: {
    50: '#7998c9',
    500: '#3170b2',
    950: '#000000',
  },
}
SCSS
$custom: #3170b2;
$custom-light: #7998c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3170b2",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 178
  },
  "hsl": {
    "h": 210.698,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53665,
    "c": 0.12226,
    "h": 252
  },
  "luminance": 0.15456
}

Semantic roles & 50–950 ramp

primary
#3170B2
secondary
#C5A079
accent
#9648E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3170B2

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

Preview Lab → · Contrast checker → · Palette generator →

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