#317EB2#317EB2

#317EB2 is a mid, moderate cyan. Relative luminance 0.188; OKLCH L 57.0% C 0.110 H 242.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#317EB2
RGBrgb(49, 126, 178)
HSLhsl(204, 57%, 45%)
HSVhsv(204, 72%, 70%)
CMYKcmyk(72.5%, 29.2%, 0%, 30.2%)
CIE-LABlab(50.44, -5.98, -34.27)
CIE-LCHlch(50.44, 34.79, 260.09°)
OKLaboklab(56.96% -0.0514 -0.0968)
OKLCHoklch(56.96% 0.11 242)
XYZxyz(16.7603, 18.7871, 44.8538)
Luminance0.1879 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317EB2 #B26531
analogous
#31B2A6 #317EB2 #313EB2
triadic
#317EB2 #B2317E #7EB231
tetradic
#317EB2 #A631B2 #B26531 #3EB231
square
#317EB2 #A631B2 #B26531 #3EB231
split-complementary
#317EB2 #B2313E #B2A631
monochromatic
#173A52 #245C82 #317EB2 #519CCF #81B8DC

Accessibility & contrast

On white

4.41
#317EB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#317EB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #317EB2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317EB2#FFFFFF#000000##000000
##317EB21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#667FB4
Deuteranopia (green-blind)
#5473B1
Tritanopia (blue-blind)
#008B90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #317eb2;
/* rgb */ color: rgb(49, 126, 178);
/* oklch */ color: oklch(57.0% 0.110 242.0);
Tailwind
colors: {
  custom: {
    50: '#7aa3c9',
    500: '#317eb2',
    950: '#000000',
  },
}
SCSS
$custom: #317eb2;
$custom-light: #7aa3c9;
$custom-dark: #000000;
JSON
{
  "hex": "#317eb2",
  "rgb": {
    "r": 49,
    "g": 126,
    "b": 178
  },
  "hsl": {
    "h": 204.186,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5696,
    "c": 0.10966,
    "h": 242
  },
  "luminance": 0.18789
}

Semantic roles & 50–950 ramp

primary
#317EB2
secondary
#C59879
accent
#8548E0
background
#F8FAFC
surface
#EFF3F8
border
#CACDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #317EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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