#3172D1#3172D1

#3172D1 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.1% C 0.161 H 258.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#3172D1
RGBrgb(49, 114, 209)
HSLhsl(216, 63%, 51%)
HSVhsv(216, 77%, 82%)
CMYKcmyk(76.6%, 45.5%, 0%, 18%)
CIE-LABlab(48.62, 12.72, -54.94)
CIE-LCHlch(48.62, 56.39, 283.04°)
OKLaboklab(56.09% -0.0328 -0.1576)
OKLCHoklch(56.09% 0.161 258.2)
XYZxyz(18.7883, 17.2889, 62.6561)
Luminance0.1729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172D1 #D19031
analogous
#31C2D1 #3172D1 #4031D1
triadic
#3172D1 #D13172 #72D131
tetradic
#3172D1 #D131C2 #D19031 #31D140
square
#3172D1 #D131C2 #D19031 #31D140
split-complementary
#3172D1 #D14031 #C2D131
monochromatic
#193C6F #2457A1 #3172D1 #6394DC #95B6E7

Accessibility & contrast

On white

4.71
#3172D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#3172D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172D1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172D1#FFFFFF#000000##FFFFFF
##3172D11.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#407BD5
Deuteranopia (green-blind)
#1B6DCF
Tritanopia (blue-blind)
#008997
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3172d1;
/* rgb */ color: rgb(49, 114, 209);
/* oklch */ color: oklch(56.1% 0.161 258.2);
Tailwind
colors: {
  custom: {
    50: '#8099e0',
    500: '#3172d1',
    950: '#000000',
  },
}
SCSS
$custom: #3172d1;
$custom-light: #8099e0;
$custom-dark: #000000;
JSON
{
  "hex": "#3172d1",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 209
  },
  "hsl": {
    "h": 215.625,
    "s": 63.492,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56089,
    "c": 0.16094,
    "h": 258.2
  },
  "luminance": 0.17291
}

Semantic roles & 50–950 ramp

primary
#3172D1
secondary
#D2B68B
accent
#A341E7
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3172D1

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

Preview Lab → · Contrast checker → · Palette generator →

#3172D1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva