#3174B7#3174B7

#3174B7 is a mid, vivid cyan. Relative luminance 0.166; OKLCH L 54.9% C 0.125 H 251.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#3174B7
RGBrgb(49, 116, 183)
HSLhsl(210, 58%, 45%)
HSVhsv(210, 73%, 72%)
CMYKcmyk(73.2%, 36.6%, 0%, 28.2%)
CIE-LABlab(47.70, 1.82, -41.47)
CIE-LCHlch(47.70, 41.51, 272.52°)
OKLaboklab(54.89% -0.0402 -0.118)
OKLCHoklch(54.89% 0.125 251.2)
XYZxyz(16.0561, 16.5609, 47.1409)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3174B7 #B77431
analogous
#31B7B7 #3174B7 #3131B7
triadic
#3174B7 #B73174 #74B731
tetradic
#3174B7 #B731B7 #B77431 #31B731
square
#3174B7 #B731B7 #B77431 #31B731
split-complementary
#3174B7 #B73131 #B7B731
monochromatic
#173756 #245587 #3174B7 #5493D1 #84B1DE

Accessibility & contrast

On white

4.87
#3174B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#3174B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3174B7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3174B7#FFFFFF#000000##FFFFFF
##3174B71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5578BA
Deuteranopia (green-blind)
#416CB6
Tritanopia (blue-blind)
#00848D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3174b7;
/* rgb */ color: rgb(49, 116, 183);
/* oklch */ color: oklch(54.9% 0.125 251.2);
Tailwind
colors: {
  custom: {
    50: '#7a9bcd',
    500: '#3174b7',
    950: '#000000',
  },
}
SCSS
$custom: #3174b7;
$custom-light: #7a9bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#3174b7",
  "rgb": {
    "r": 49,
    "g": 116,
    "b": 183
  },
  "hsl": {
    "h": 210,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54889,
    "c": 0.12467,
    "h": 251.2
  },
  "luminance": 0.16563
}

Semantic roles & 50–950 ramp

primary
#3174B7
secondary
#C8A27C
accent
#9447E1
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #3174B7

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

Preview Lab → · Contrast checker → · Palette generator →

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