#315784#315784

#315784 is a mid, moderate cyan. Relative luminance 0.091; OKLCH L 45.0% C 0.086 H 253.7°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#315784
RGBrgb(49, 87, 132)
HSLhsl(213, 46%, 35%)
HSVhsv(213, 63%, 52%)
CMYKcmyk(62.9%, 34.1%, 0%, 48.2%)
CIE-LABlab(36.24, 1.34, -29.25)
CIE-LCHlch(36.24, 29.28, 272.63°)
OKLaboklab(45.03% -0.0241 -0.0827)
OKLCHoklch(45.03% 0.086 253.7)
XYZxyz(8.8382, 9.1345, 23.1227)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315784 #845E31
analogous
#318084 #315784 #343184
triadic
#315784 #843157 #578431
tetradic
#315784 #843180 #845E31 #318434
square
#315784 #843180 #845E31 #318434
split-complementary
#315784 #843431 #808431
monochromatic
#101C2B #203A57 #315784 #4274B1 #6894C7

Accessibility & contrast

On white

7.43
#315784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#315784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315784
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315784#FFFFFF#000000##FFFFFF
##3157841.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445A86
Deuteranopia (green-blind)
#395283
Tritanopia (blue-blind)
#006167
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #315784;
/* rgb */ color: rgb(49, 87, 132);
/* oklch */ color: oklch(45.0% 0.086 253.7);
Tailwind
colors: {
  custom: {
    50: '#7186a8',
    500: '#315784',
    950: '#000000',
  },
}
SCSS
$custom: #315784;
$custom-light: #7186a8;
$custom-dark: #000000;
JSON
{
  "hex": "#315784",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 132
  },
  "hsl": {
    "h": 212.53,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45032,
    "c": 0.08612,
    "h": 253.7
  },
  "luminance": 0.09135
}

Semantic roles & 50–950 ramp

primary
#315784
secondary
#AE8C62
accent
#9952D6
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B0F
muted
#7B7C7F

Preview Lab

Preview with #315784

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

Preview Lab → · Contrast checker → · Palette generator →

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