#3172B2#3172B2

#3172B2 is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.1% C 0.120 H 250.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#3172B2
RGBrgb(49, 114, 178)
HSLhsl(210, 57%, 45%)
HSVhsv(210, 72%, 70%)
CMYKcmyk(72.5%, 36%, 0%, 30.2%)
CIE-LABlab(46.84, 1.21, -39.93)
CIE-LCHlch(46.84, 39.95, 271.74°)
OKLaboklab(54.13% -0.0396 -0.1135)
OKLCHoklch(54.13% 0.12 250.7)
XYZxyz(15.3168, 15.9003, 44.3727)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172B2 #B27131
analogous
#31B2B1 #3172B2 #3132B2
triadic
#3172B2 #B23172 #72B231
tetradic
#3172B2 #B131B2 #B27131 #32B231
square
#3172B2 #B131B2 #B27131 #32B231
split-complementary
#3172B2 #B23132 #B2B131
monochromatic
#173552 #245382 #3172B2 #5191CF #81AFDC

Accessibility & contrast

On white

5.02
#3172B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#3172B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172B2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172B2#FFFFFF#000000##FFFFFF
##3172B21.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5576B5
Deuteranopia (green-blind)
#426AB1
Tritanopia (blue-blind)
#008189
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3172b2;
/* rgb */ color: rgb(49, 114, 178);
/* oklch */ color: oklch(54.1% 0.120 250.7);
Tailwind
colors: {
  custom: {
    50: '#799ac9',
    500: '#3172b2',
    950: '#000000',
  },
}
SCSS
$custom: #3172b2;
$custom-light: #799ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#3172b2",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 178
  },
  "hsl": {
    "h": 209.767,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54129,
    "c": 0.12025,
    "h": 250.7
  },
  "luminance": 0.15902
}

Semantic roles & 50–950 ramp

primary
#3172B2
secondary
#C59F79
accent
#9348E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #3172B2

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

Preview Lab → · Contrast checker → · Palette generator →

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