#3172CA#3172CA

#3172CA is a mid, vivid cyan. Relative luminance 0.170; OKLCH L 55.6% C 0.152 H 257.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#3172CA
RGBrgb(49, 114, 202)
HSLhsl(215, 61%, 49%)
HSVhsv(215, 76%, 79%)
CMYKcmyk(75.7%, 43.6%, 0%, 20.8%)
CIE-LABlab(48.20, 10.11, -51.62)
CIE-LCHlch(48.20, 52.60, 281.08°)
OKLaboklab(55.62% -0.0341 -0.1478)
OKLCHoklch(55.62% 0.152 257)
XYZxyz(17.9407, 16.9498, 58.1918)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172CA #CA8931
analogous
#31BFCA #3172CA #3D31CA
triadic
#3172CA #CA3172 #72CA31
tetradic
#3172CA #CA31BF #CA8931 #31CA3D
square
#3172CA #CA31BF #CA8931 #31CA3D
split-complementary
#3172CA #CA3D31 #BFCA31
monochromatic
#193A67 #255699 #3172CA #6093D8 #91B4E4

Accessibility & contrast

On white

4.78
#3172CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#3172CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172CA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172CA#FFFFFF#000000##FFFFFF
##3172CA1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#467ACD
Deuteranopia (green-blind)
#286CC8
Tritanopia (blue-blind)
#008794
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3172ca;
/* rgb */ color: rgb(49, 114, 202);
/* oklch */ color: oklch(55.6% 0.152 257.0);
Tailwind
colors: {
  custom: {
    50: '#7e9adb',
    500: '#3172ca',
    950: '#000000',
  },
}
SCSS
$custom: #3172ca;
$custom-light: #7e9adb;
$custom-dark: #000000;
JSON
{
  "hex": "#3172ca",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 214.51,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55623,
    "c": 0.1517,
    "h": 257
  },
  "luminance": 0.16952
}

Semantic roles & 50–950 ramp

primary
#3172CA
secondary
#CFB188
accent
#A044E4
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #3172CA

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

Preview Lab → · Contrast checker → · Palette generator →

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