#315CA5#315CA5

#315CA5 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.3% C 0.127 H 260.3°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#315CA5
RGBrgb(49, 92, 165)
HSLhsl(218, 54%, 42%)
HSVhsv(218, 70%, 65%)
CMYKcmyk(70.3%, 44.2%, 0%, 35.3%)
CIE-LABlab(39.62, 10.28, -43.79)
CIE-LCHlch(39.62, 44.98, 283.21°)
OKLaboklab(48.27% -0.0214 -0.1252)
OKLCHoklch(48.27% 0.127 260.3)
XYZxyz(11.8829, 11.0226, 37.0914)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CA5 #A57A31
analogous
#3196A5 #315CA5 #4031A5
triadic
#315CA5 #A5315C #5CA531
tetradic
#315CA5 #A53196 #A57A31 #31A540
square
#315CA5 #A53196 #A57A31 #31A540
split-complementary
#315CA5 #A54031 #96A531
monochromatic
#152747 #234276 #315CA5 #4A79C9 #799CD7

Accessibility & contrast

On white

6.55
#315CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#315CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CA5
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CA5#FFFFFF#000000##FFFFFF
##315CA51.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3963A8
Deuteranopia (green-blind)
#2458A4
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #315ca5;
/* rgb */ color: rgb(49, 92, 165);
/* oklch */ color: oklch(48.3% 0.127 260.3);
Tailwind
colors: {
  custom: {
    50: '#7789c0',
    500: '#315ca5',
    950: '#000000',
  },
}
SCSS
$custom: #315ca5;
$custom-light: #7789c0;
$custom-dark: #000000;
JSON
{
  "hex": "#315ca5",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 165
  },
  "hsl": {
    "h": 217.759,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48267,
    "c": 0.127,
    "h": 260.3
  },
  "luminance": 0.11024
}

Semantic roles & 50–950 ramp

primary
#315CA5
secondary
#C0A372
accent
#A74ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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