#315AA5#315AA5

#315AA5 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.8% C 0.129 H 261.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#315AA5
RGBrgb(49, 90, 165)
HSLhsl(219, 54%, 42%)
HSVhsv(219, 70%, 65%)
CMYKcmyk(70.3%, 45.5%, 0%, 35.3%)
CIE-LABlab(39.04, 11.58, -44.72)
CIE-LCHlch(39.04, 46.19, 284.52°)
OKLaboklab(47.82% -0.0195 -0.1279)
OKLCHoklch(47.82% 0.129 261.3)
XYZxyz(11.7119, 10.6807, 37.0344)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AA5 #A57C31
analogous
#3194A5 #315AA5 #4231A5
triadic
#315AA5 #A5315A #5AA531
tetradic
#315AA5 #A53194 #A57C31 #31A542
square
#315AA5 #A53194 #A57C31 #31A542
split-complementary
#315AA5 #A54231 #94A531
monochromatic
#152747 #234076 #315AA5 #4A77C9 #799AD7

Accessibility & contrast

On white

6.70
#315AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#315AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315AA5
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315AA5#FFFFFF#000000##FFFFFF
##315AA51.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3562A8
Deuteranopia (green-blind)
#1F57A3
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #315aa5;
/* rgb */ color: rgb(49, 90, 165);
/* oklch */ color: oklch(47.8% 0.129 261.3);
Tailwind
colors: {
  custom: {
    50: '#7788c0',
    500: '#315aa5',
    950: '#000000',
  },
}
SCSS
$custom: #315aa5;
$custom-light: #7788c0;
$custom-dark: #000000;
JSON
{
  "hex": "#315aa5",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 165
  },
  "hsl": {
    "h": 218.793,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47819,
    "c": 0.12942,
    "h": 261.3
  },
  "luminance": 0.10682
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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