#317FAB#317FAB

#317FAB is a mid, moderate cyan. Relative luminance 0.188; OKLCH L 56.8% C 0.101 H 237.3°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#317FAB
RGBrgb(49, 127, 171)
HSLhsl(202, 55%, 43%)
HSVhsv(202, 71%, 67%)
CMYKcmyk(71.3%, 25.7%, 0%, 32.9%)
CIE-LABlab(50.42, -9.04, -30.25)
CIE-LCHlch(50.42, 31.57, 253.37°)
OKLaboklab(56.84% -0.0548 -0.0852)
OKLCHoklch(56.84% 0.101 237.3)
XYZxyz(16.2038, 18.7702, 41.2892)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317FAB #AB5D31
analogous
#31AB9A #317FAB #3142AB
triadic
#317FAB #AB317F #7FAB31
tetradic
#317FAB #9A31AB #AB5D31 #42AB31
square
#317FAB #9A31AB #AB5D31 #42AB31
split-complementary
#317FAB #AB3142 #AB9A31
monochromatic
#16384C #235C7B #317FAB #4D9ECC #7DB8DA

Accessibility & contrast

On white

4.42
#317FAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#317FAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #317FAB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317FAB#FFFFFF#000000##000000
##317FAB1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A7FAD
Deuteranopia (green-blind)
#5A73AA
Tritanopia (blue-blind)
#008A8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #317fab;
/* rgb */ color: rgb(49, 127, 171);
/* oklch */ color: oklch(56.8% 0.101 237.3);
Tailwind
colors: {
  custom: {
    50: '#79a4c4',
    500: '#317fab',
    950: '#000000',
  },
}
SCSS
$custom: #317fab;
$custom-light: #79a4c4;
$custom-dark: #000000;
JSON
{
  "hex": "#317fab",
  "rgb": {
    "r": 49,
    "g": 127,
    "b": 171
  },
  "hsl": {
    "h": 201.639,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.56838,
    "c": 0.10129,
    "h": 237.3
  },
  "luminance": 0.18772
}

Semantic roles & 50–950 ramp

primary
#317FAB
secondary
#C29175
accent
#7F49DF
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #317FAB

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

Preview Lab → · Contrast checker → · Palette generator →

#317FAB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva