#315987#315987

#315987 is a mid, moderate cyan. Relative luminance 0.095; OKLCH L 45.7% C 0.088 H 253.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#315987
RGBrgb(49, 89, 135)
HSLhsl(212, 47%, 36%)
HSVhsv(212, 64%, 53%)
CMYKcmyk(63.7%, 34.1%, 0%, 47.1%)
CIE-LABlab(37.02, 1.15, -29.87)
CIE-LCHlch(37.02, 29.89, 272.20°)
OKLaboklab(45.69% -0.0255 -0.0844)
OKLCHoklch(45.69% 0.088 253.2)
XYZxyz(9.2106, 9.5461, 24.2742)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315987 #875F31
analogous
#318487 #315987 #343187
triadic
#315987 #873159 #598731
tetradic
#315987 #873184 #875F31 #318734
square
#315987 #873184 #875F31 #318734
split-complementary
#315987 #873431 #848731
monochromatic
#101E2D #213B5A #315987 #4177B4 #6A96C9

Accessibility & contrast

On white

7.22
#315987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#315987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315987
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315987#FFFFFF#000000##FFFFFF
##3159871.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455C89
Deuteranopia (green-blind)
#3A5386
Tritanopia (blue-blind)
#00646A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #315987;
/* rgb */ color: rgb(49, 89, 135);
/* oklch */ color: oklch(45.7% 0.088 253.2);
Tailwind
colors: {
  custom: {
    50: '#7287aa',
    500: '#315987',
    950: '#000000',
  },
}
SCSS
$custom: #315987;
$custom-light: #7287aa;
$custom-dark: #000000;
JSON
{
  "hex": "#315987",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 135
  },
  "hsl": {
    "h": 212.093,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45689,
    "c": 0.08822,
    "h": 253.2
  },
  "luminance": 0.09547
}

Semantic roles & 50–950 ramp

primary
#315987
secondary
#B08D64
accent
#9951D6
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #315987

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

Preview Lab → · Contrast checker → · Palette generator →

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