#315AA4#315AA4

#315AA4 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.8% C 0.128 H 261.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#315AA4
RGBrgb(49, 90, 164)
HSLhsl(219, 54%, 42%)
HSVhsv(219, 70%, 64%)
CMYKcmyk(70.1%, 45.1%, 0%, 35.7%)
CIE-LABlab(38.98, 11.20, -44.22)
CIE-LCHlch(38.98, 45.62, 284.22°)
OKLaboklab(47.75% -0.0197 -0.1265)
OKLCHoklch(47.75% 0.128 261.2)
XYZxyz(11.6212, 10.6444, 36.5569)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AA4 #A47B31
analogous
#3194A4 #315AA4 #4231A4
triadic
#315AA4 #A4315A #5AA431
tetradic
#315AA4 #A43194 #A47B31 #31A442
square
#315AA4 #A43194 #A47B31 #31A442
split-complementary
#315AA4 #A44231 #94A431
monochromatic
#152646 #234075 #315AA4 #4977C9 #799AD7

Accessibility & contrast

On white

6.71
#315AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#315AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315AA4
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315AA4#FFFFFF#000000##FFFFFF
##315AA41.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3561A7
Deuteranopia (green-blind)
#2057A2
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #315aa4;
/* rgb */ color: rgb(49, 90, 164);
/* oklch */ color: oklch(47.8% 0.128 261.2);
Tailwind
colors: {
  custom: {
    50: '#7788bf',
    500: '#315aa4',
    950: '#000000',
  },
}
SCSS
$custom: #315aa4;
$custom-light: #7788bf;
$custom-dark: #000000;
JSON
{
  "hex": "#315aa4",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 164
  },
  "hsl": {
    "h": 218.609,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47751,
    "c": 0.12801,
    "h": 261.2
  },
  "luminance": 0.10646
}

Semantic roles & 50–950 ramp

primary
#315AA4
secondary
#BFA472
accent
#A94ADD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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