#3170B3#3170B3

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

Color values

HEX#3170B3
RGBrgb(49, 112, 179)
HSLhsl(211, 57%, 45%)
HSVhsv(211, 73%, 70%)
CMYKcmyk(72.6%, 37.4%, 0%, 29.8%)
CIE-LABlab(46.30, 2.81, -41.37)
CIE-LCHlch(46.30, 41.46, 273.89°)
OKLaboklab(53.72% -0.0375 -0.1177)
OKLCHoklch(53.72% 0.124 252.4)
XYZxyz(15.1944, 15.4943, 44.8290)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3170B3 #B37431
analogous
#31B1B3 #3170B3 #3331B3
triadic
#3170B3 #B33170 #70B331
tetradic
#3170B3 #B331B1 #B37431 #31B333
square
#3170B3 #B331B1 #B37431 #31B333
split-complementary
#3170B3 #B33331 #B1B331
monochromatic
#173453 #245283 #3170B3 #528FD0 #82AEDD

Accessibility & contrast

On white

5.12
#3170B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#3170B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3170B3
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3170B3#FFFFFF#000000##FFFFFF
##3170B31.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5174B6
Deuteranopia (green-blind)
#3E68B2
Tritanopia (blue-blind)
#008089
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3170b3;
/* rgb */ color: rgb(49, 112, 179);
/* oklch */ color: oklch(53.7% 0.124 252.4);
Tailwind
colors: {
  custom: {
    50: '#7a98ca',
    500: '#3170b3',
    950: '#000000',
  },
}
SCSS
$custom: #3170b3;
$custom-light: #7a98ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3170b3",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 179
  },
  "hsl": {
    "h": 210.923,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53724,
    "c": 0.12357,
    "h": 252.4
  },
  "luminance": 0.15496
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3170B3

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

Preview Lab → · Contrast checker → · Palette generator →

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