#315AA6#315AA6

#315AA6 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.9% C 0.131 H 261.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#315AA6
RGBrgb(49, 90, 166)
HSLhsl(219, 54%, 42%)
HSVhsv(219, 70%, 65%)
CMYKcmyk(70.5%, 45.8%, 0%, 34.9%)
CIE-LABlab(39.10, 11.95, -45.21)
CIE-LCHlch(39.10, 46.76, 284.81°)
OKLaboklab(47.89% -0.0193 -0.1294)
OKLCHoklch(47.89% 0.131 261.5)
XYZxyz(11.8033, 10.7173, 37.5156)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AA6 #A67D31
analogous
#3195A6 #315AA6 #4231A6
triadic
#315AA6 #A6315A #5AA631
tetradic
#315AA6 #A63195 #A67D31 #31A642
square
#315AA6 #A63195 #A67D31 #31A642
split-complementary
#315AA6 #A64231 #95A631
monochromatic
#152747 #234077 #315AA6 #4A77CA #7A9BD8

Accessibility & contrast

On white

6.68
#315AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #315AA6
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315AA6#FFFFFF#000000##FFFFFF
##315AA61.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A9
Deuteranopia (green-blind)
#1D57A4
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #315aa6;
/* rgb */ color: rgb(49, 90, 166);
/* oklch */ color: oklch(47.9% 0.131 261.5);
Tailwind
colors: {
  custom: {
    50: '#7788c1',
    500: '#315aa6',
    950: '#000000',
  },
}
SCSS
$custom: #315aa6;
$custom-light: #7788c1;
$custom-dark: #000000;
JSON
{
  "hex": "#315aa6",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 166
  },
  "hsl": {
    "h": 218.974,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47888,
    "c": 0.13083,
    "h": 261.5
  },
  "luminance": 0.10718
}

Semantic roles & 50–950 ramp

primary
#315AA6
secondary
#C0A573
accent
#AA4ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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