#315BA5#315BA5

#315BA5 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.0% C 0.128 H 260.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#315BA5
RGBrgb(49, 91, 165)
HSLhsl(218, 54%, 42%)
HSVhsv(218, 70%, 65%)
CMYKcmyk(70.3%, 44.8%, 0%, 35.3%)
CIE-LABlab(39.33, 10.93, -44.25)
CIE-LCHlch(39.33, 45.58, 283.87°)
OKLaboklab(48.04% -0.0204 -0.1266)
OKLCHoklch(48.04% 0.128 260.8)
XYZxyz(11.7968, 10.8505, 37.0627)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BA5 #A57B31
analogous
#3195A5 #315BA5 #4131A5
triadic
#315BA5 #A5315B #5BA531
tetradic
#315BA5 #A53195 #A57B31 #31A541
square
#315BA5 #A53195 #A57B31 #31A541
split-complementary
#315BA5 #A54131 #95A531
monochromatic
#152747 #234176 #315BA5 #4A78C9 #799BD7

Accessibility & contrast

On white

6.62
#315BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#315BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BA5
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BA5#FFFFFF#000000##FFFFFF
##315BA51.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3762A8
Deuteranopia (green-blind)
#2158A3
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #315ba5;
/* rgb */ color: rgb(49, 91, 165);
/* oklch */ color: oklch(48.0% 0.128 260.8);
Tailwind
colors: {
  custom: {
    50: '#7788c0',
    500: '#315ba5',
    950: '#000000',
  },
}
SCSS
$custom: #315ba5;
$custom-light: #7788c0;
$custom-dark: #000000;
JSON
{
  "hex": "#315ba5",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 165
  },
  "hsl": {
    "h": 218.276,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48043,
    "c": 0.1282,
    "h": 260.8
  },
  "luminance": 0.10852
}

Semantic roles & 50–950 ramp

primary
#315BA5
secondary
#C0A472
accent
#A84ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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