#315BAC#315BAC

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

Color values

HEX#315BAC
RGBrgb(49, 91, 172)
HSLhsl(220, 56%, 43%)
HSVhsv(220, 72%, 67%)
CMYKcmyk(71.5%, 47.1%, 0%, 32.5%)
CIE-LABlab(39.77, 13.56, -47.69)
CIE-LCHlch(39.77, 49.58, 285.87°)
OKLaboklab(48.53% -0.0192 -0.1367)
OKLCHoklch(48.53% 0.138 262)
XYZxyz(12.4514, 11.1124, 40.5104)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BAC #AC8231
analogous
#3198AC #315BAC #4431AC
triadic
#315BAC #AC315B #5BAC31
tetradic
#315BAC #AC3198 #AC8231 #31AC44
square
#315BAC #AC3198 #AC8231 #31AC44
split-complementary
#315BAC #AC4431 #98AC31
monochromatic
#16294D #23427C #315BAC #4E79CC #7D9DDA

Accessibility & contrast

On white

6.52
#315BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #315BAC
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BAC#FFFFFF#000000##FFFFFF
##315BAC1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3164AF
Deuteranopia (green-blind)
#1558AA
Tritanopia (blue-blind)
#006E7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315bac;
/* rgb */ color: rgb(49, 91, 172);
/* oklch */ color: oklch(48.5% 0.138 262.0);
Tailwind
colors: {
  custom: {
    50: '#7988c5',
    500: '#315bac',
    950: '#000000',
  },
}
SCSS
$custom: #315bac;
$custom-light: #7988c5;
$custom-dark: #000000;
JSON
{
  "hex": "#315bac",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 172
  },
  "hsl": {
    "h": 219.512,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48525,
    "c": 0.13803,
    "h": 262
  },
  "luminance": 0.11114
}

Semantic roles & 50–950 ramp

primary
#315BAC
secondary
#C3A976
accent
#AC49DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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