#315BA6#315BA6

#315BA6 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.1% C 0.130 H 261.0°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#315BA6
RGBrgb(49, 91, 166)
HSLhsl(218, 54%, 42%)
HSVhsv(218, 70%, 65%)
CMYKcmyk(70.5%, 45.2%, 0%, 34.9%)
CIE-LABlab(39.39, 11.30, -44.75)
CIE-LCHlch(39.39, 46.15, 284.18°)
OKLaboklab(48.11% -0.0203 -0.128)
OKLCHoklch(48.11% 0.13 261)
XYZxyz(11.8882, 10.8871, 37.5439)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BA6 #A67C31
analogous
#3195A6 #315BA6 #4231A6
triadic
#315BA6 #A6315B #5BA631
tetradic
#315BA6 #A63195 #A67C31 #31A642
square
#315BA6 #A63195 #A67C31 #31A642
split-complementary
#315BA6 #A64231 #95A631
monochromatic
#152747 #234177 #315BA6 #4A78CA #7A9BD8

Accessibility & contrast

On white

6.61
#315BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#315BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BA6
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BA6#FFFFFF#000000##FFFFFF
##315BA61.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3663A9
Deuteranopia (green-blind)
#2058A4
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #315ba6;
/* rgb */ color: rgb(49, 91, 166);
/* oklch */ color: oklch(48.1% 0.130 261.0);
Tailwind
colors: {
  custom: {
    50: '#7788c1',
    500: '#315ba6',
    950: '#000000',
  },
}
SCSS
$custom: #315ba6;
$custom-light: #7788c1;
$custom-dark: #000000;
JSON
{
  "hex": "#315ba6",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 166
  },
  "hsl": {
    "h": 218.462,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48111,
    "c": 0.12961,
    "h": 261
  },
  "luminance": 0.10888
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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