#3170D0#3170D0

#3170D0 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.6% C 0.162 H 258.8°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#3170D0
RGBrgb(49, 112, 208)
HSLhsl(216, 63%, 50%)
HSVhsv(216, 76%, 82%)
CMYKcmyk(76.4%, 46.2%, 0%, 18.4%)
CIE-LABlab(48.00, 13.61, -55.37)
CIE-LCHlch(48.00, 57.02, 283.81°)
OKLaboklab(55.59% -0.0313 -0.1589)
OKLCHoklch(55.59% 0.162 258.8)
XYZxyz(18.4418, 16.7932, 61.9318)
Luminance0.1679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3170D0 #D09131
analogous
#31C0D0 #3170D0 #4131D0
triadic
#3170D0 #D03170 #70D031
tetradic
#3170D0 #D031C0 #D09131 #31D041
square
#3170D0 #D031C0 #D09131 #31D041
split-complementary
#3170D0 #D04131 #C0D031
monochromatic
#193B6E #24559F #3170D0 #6393DB #95B5E7

Accessibility & contrast

On white

4.82
#3170D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#3170D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3170D0
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3170D0#FFFFFF#000000##FFFFFF
##3170D01.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D7AD4
Deuteranopia (green-blind)
#146BCE
Tritanopia (blue-blind)
#008796
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3170d0;
/* rgb */ color: rgb(49, 112, 208);
/* oklch */ color: oklch(55.6% 0.162 258.8);
Tailwind
colors: {
  custom: {
    50: '#7f98df',
    500: '#3170d0',
    950: '#000000',
  },
}
SCSS
$custom: #3170d0;
$custom-light: #7f98df;
$custom-dark: #000000;
JSON
{
  "hex": "#3170d0",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 208
  },
  "hsl": {
    "h": 216.226,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55588,
    "c": 0.16194,
    "h": 258.8
  },
  "luminance": 0.16795
}

Semantic roles & 50–950 ramp

primary
#3170D0
secondary
#D2B68B
accent
#A542E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3170D0

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

Preview Lab → · Contrast checker → · Palette generator →

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