#315786#315786

#315786 is a mid, moderate cyan. Relative luminance 0.092; OKLCH L 45.1% C 0.089 H 254.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#315786
RGBrgb(49, 87, 134)
HSLhsl(213, 46%, 36%)
HSVhsv(213, 63%, 53%)
CMYKcmyk(63.4%, 35.1%, 0%, 47.5%)
CIE-LABlab(36.35, 2.06, -30.31)
CIE-LCHlch(36.35, 30.38, 273.89°)
OKLaboklab(45.15% -0.0235 -0.0858)
OKLCHoklch(45.15% 0.089 254.7)
XYZxyz(8.9763, 9.1898, 23.8504)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315786 #866031
analogous
#318186 #315786 #353186
triadic
#315786 #863157 #578631
tetradic
#315786 #863181 #866031 #318635
square
#315786 #863181 #866031 #318635
split-complementary
#315786 #863531 #818631
monochromatic
#101D2C #213A59 #315786 #4174B3 #6994C8

Accessibility & contrast

On white

7.40
#315786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#315786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315786
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315786#FFFFFF#000000##FFFFFF
##3157861.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435A88
Deuteranopia (green-blind)
#385285
Tritanopia (blue-blind)
#006268
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #315786;
/* rgb */ color: rgb(49, 87, 134);
/* oklch */ color: oklch(45.1% 0.089 254.7);
Tailwind
colors: {
  custom: {
    50: '#7186a9',
    500: '#315786',
    950: '#000000',
  },
}
SCSS
$custom: #315786;
$custom-light: #7186a9;
$custom-dark: #000000;
JSON
{
  "hex": "#315786",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 134
  },
  "hsl": {
    "h": 213.176,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45149,
    "c": 0.08893,
    "h": 254.7
  },
  "luminance": 0.09191
}

Semantic roles & 50–950 ramp

primary
#315786
secondary
#B08D63
accent
#9B52D6
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #315786

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

Preview Lab → · Contrast checker → · Palette generator →

#315786 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva