#315787#315787

#315787 is a mid, moderate cyan. Relative luminance 0.092; OKLCH L 45.2% C 0.090 H 255.1°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#315787
RGBrgb(49, 87, 135)
HSLhsl(213, 47%, 36%)
HSVhsv(213, 64%, 53%)
CMYKcmyk(63.7%, 35.6%, 0%, 47.1%)
CIE-LABlab(36.40, 2.42, -30.83)
CIE-LCHlch(36.40, 30.93, 274.50°)
OKLaboklab(45.21% -0.0232 -0.0873)
OKLCHoklch(45.21% 0.09 255.1)
XYZxyz(9.0464, 9.2178, 24.2194)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315787 #876131
analogous
#318287 #315787 #363187
triadic
#315787 #873157 #578731
tetradic
#315787 #873182 #876131 #318736
square
#315787 #873182 #876131 #318736
split-complementary
#315787 #873631 #828731
monochromatic
#101D2D #213A5A #315787 #4174B4 #6A94C9

Accessibility & contrast

On white

7.38
#315787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #315787
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315787#FFFFFF#000000##FFFFFF
##3157871.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435A89
Deuteranopia (green-blind)
#375286
Tritanopia (blue-blind)
#006268
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #315787;
/* rgb */ color: rgb(49, 87, 135);
/* oklch */ color: oklch(45.2% 0.090 255.1);
Tailwind
colors: {
  custom: {
    50: '#7286aa',
    500: '#315787',
    950: '#000000',
  },
}
SCSS
$custom: #315787;
$custom-light: #7286aa;
$custom-dark: #000000;
JSON
{
  "hex": "#315787",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 135
  },
  "hsl": {
    "h": 213.488,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45208,
    "c": 0.09034,
    "h": 255.1
  },
  "luminance": 0.09219
}

Semantic roles & 50–950 ramp

primary
#315787
secondary
#B08E64
accent
#9C51D6
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #315787

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

Preview Lab → · Contrast checker → · Palette generator →

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