#3172B7#3172B7

#3172B7 is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.4% C 0.127 H 252.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#3172B7
RGBrgb(49, 114, 183)
HSLhsl(211, 58%, 45%)
HSVhsv(211, 73%, 72%)
CMYKcmyk(73.2%, 37.7%, 0%, 28.2%)
CIE-LABlab(47.11, 3.05, -42.41)
CIE-LCHlch(47.11, 42.52, 274.12°)
OKLaboklab(54.43% -0.0383 -0.1208)
OKLCHoklch(54.43% 0.127 252.4)
XYZxyz(15.8280, 16.1047, 47.0649)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172B7 #B77631
analogous
#31B5B7 #3172B7 #3331B7
triadic
#3172B7 #B73172 #72B731
tetradic
#3172B7 #B731B5 #B77631 #31B733
square
#3172B7 #B731B5 #B77631 #31B733
split-complementary
#3172B7 #B73331 #B5B731
monochromatic
#173656 #245487 #3172B7 #5491D1 #84B0DE

Accessibility & contrast

On white

4.97
#3172B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#3172B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172B7
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172B7#FFFFFF#000000##FFFFFF
##3172B71.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5276BA
Deuteranopia (green-blind)
#3E6AB6
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3172b7;
/* rgb */ color: rgb(49, 114, 183);
/* oklch */ color: oklch(54.4% 0.127 252.4);
Tailwind
colors: {
  custom: {
    50: '#7a9acd',
    500: '#3172b7',
    950: '#000000',
  },
}
SCSS
$custom: #3172b7;
$custom-light: #7a9acd;
$custom-dark: #000000;
JSON
{
  "hex": "#3172b7",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 183
  },
  "hsl": {
    "h": 210.896,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54427,
    "c": 0.12671,
    "h": 252.4
  },
  "luminance": 0.16106
}

Semantic roles & 50–950 ramp

primary
#3172B7
secondary
#C8A37C
accent
#9647E1
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #3172B7

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

Preview Lab → · Contrast checker → · Palette generator →

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