#317ED4#317ED4

#317ED4 is a mid, vivid cyan. Relative luminance 0.203; OKLCH L 58.9% C 0.152 H 253.8°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#317ED4
RGBrgb(49, 126, 212)
HSLhsl(212, 65%, 51%)
HSVhsv(212, 77%, 83%)
CMYKcmyk(76.9%, 40.6%, 0%, 16.9%)
CIE-LABlab(52.20, 6.39, -50.91)
CIE-LCHlch(52.20, 51.31, 277.16°)
OKLaboklab(58.92% -0.0422 -0.1455)
OKLCHoklch(58.92% 0.152 253.8)
XYZxyz(20.6067, 20.3257, 65.1118)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317ED4 #D48731
analogous
#31D0D4 #317ED4 #3531D4
triadic
#317ED4 #D4317E #7ED431
tetradic
#317ED4 #D431D0 #D48731 #31D435
square
#317ED4 #D431D0 #D48731 #31D435
split-complementary
#317ED4 #D43531 #D0D431
monochromatic
#184373 #2360A5 #317ED4 #649EDF #96BDE9

Accessibility & contrast

On white

4.15
#317ED4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#317ED4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #317ED4
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317ED4#FFFFFF#000000##000000
##317ED41.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5485D7
Deuteranopia (green-blind)
#3976D2
Tritanopia (blue-blind)
#00929F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #317ed4;
/* rgb */ color: rgb(49, 126, 212);
/* oklch */ color: oklch(58.9% 0.152 253.8);
Tailwind
colors: {
  custom: {
    50: '#80a2e2',
    500: '#317ed4',
    950: '#000000',
  },
}
SCSS
$custom: #317ed4;
$custom-light: #80a2e2;
$custom-dark: #000000;
JSON
{
  "hex": "#317ed4",
  "rgb": {
    "r": 49,
    "g": 126,
    "b": 212
  },
  "hsl": {
    "h": 211.656,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58923,
    "c": 0.15151,
    "h": 253.8
  },
  "luminance": 0.20328
}

Semantic roles & 50–950 ramp

primary
#317ED4
secondary
#D4B28C
accent
#993FE8
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0F15
muted
#7D7E83

Preview Lab

Preview with #317ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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