#315BAB#315BAB

#315BAB is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.5% C 0.137 H 261.8°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#315BAB
RGBrgb(49, 91, 171)
HSLhsl(219, 55%, 43%)
HSVhsv(219, 71%, 67%)
CMYKcmyk(71.3%, 46.8%, 0%, 32.9%)
CIE-LABlab(39.70, 13.18, -47.20)
CIE-LCHlch(39.70, 49.01, 285.60°)
OKLaboklab(48.46% -0.0194 -0.1352)
OKLCHoklch(48.46% 0.137 261.8)
XYZxyz(12.3558, 11.0741, 40.0065)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BAB #AB8131
analogous
#3198AB #315BAB #4431AB
triadic
#315BAB #AB315B #5BAB31
tetradic
#315BAB #AB3198 #AB8131 #31AB44
square
#315BAB #AB3198 #AB8131 #31AB44
split-complementary
#315BAB #AB4431 #98AB31
monochromatic
#16284C #23427B #315BAB #4D79CC #7D9DDA

Accessibility & contrast

On white

6.53
#315BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#315BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BAB
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BAB#FFFFFF#000000##FFFFFF
##315BAB1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3264AE
Deuteranopia (green-blind)
#1758A9
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315bab;
/* rgb */ color: rgb(49, 91, 171);
/* oklch */ color: oklch(48.5% 0.137 261.8);
Tailwind
colors: {
  custom: {
    50: '#7888c4',
    500: '#315bab',
    950: '#000000',
  },
}
SCSS
$custom: #315bab;
$custom-light: #7888c4;
$custom-dark: #000000;
JSON
{
  "hex": "#315bab",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 171
  },
  "hsl": {
    "h": 219.344,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48455,
    "c": 0.13662,
    "h": 261.8
  },
  "luminance": 0.11075
}

Semantic roles & 50–950 ramp

primary
#315BAB
secondary
#C2A875
accent
#AB49DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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