#315F87#315F87

#315F87 is a mid, moderate cyan. Relative luminance 0.106; OKLCH L 47.1% C 0.083 H 246.9°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#315F87
RGBrgb(49, 95, 135)
HSLhsl(208, 47%, 36%)
HSVhsv(208, 64%, 53%)
CMYKcmyk(63.7%, 29.6%, 0%, 47.1%)
CIE-LABlab(38.87, -2.62, -26.95)
CIE-LCHlch(38.87, 27.08, 264.44°)
OKLaboklab(47.15% -0.0324 -0.0759)
OKLCHoklch(47.15% 0.083 246.9)
XYZxyz(9.7304, 10.5857, 24.4474)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315F87 #875931
analogous
#318784 #315F87 #313487
triadic
#315F87 #87315F #5F8731
tetradic
#315F87 #843187 #875931 #348731
square
#315F87 #843187 #875931 #348731
split-complementary
#315F87 #873134 #878431
monochromatic
#10202D #213F5A #315F87 #417FB4 #6A9DC9

Accessibility & contrast

On white

6.74
#315F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#315F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315F87
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315F87#FFFFFF#000000##FFFFFF
##315F871.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6089
Deuteranopia (green-blind)
#425886
Tritanopia (blue-blind)
#00696D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #315f87;
/* rgb */ color: rgb(49, 95, 135);
/* oklch */ color: oklch(47.1% 0.083 246.9);
Tailwind
colors: {
  custom: {
    50: '#728caa',
    500: '#315f87',
    950: '#000000',
  },
}
SCSS
$custom: #315f87;
$custom-light: #728caa;
$custom-dark: #000000;
JSON
{
  "hex": "#315f87",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 135
  },
  "hsl": {
    "h": 207.907,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47149,
    "c": 0.08255,
    "h": 246.9
  },
  "luminance": 0.10587
}

Semantic roles & 50–950 ramp

primary
#315F87
secondary
#B08764
accent
#8F51D6
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #315F87

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

Preview Lab → · Contrast checker → · Palette generator →

#315F87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva