#315CAC#315CAC

#315CAC is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.137 H 261.5°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#315CAC
RGBrgb(49, 92, 172)
HSLhsl(219, 56%, 43%)
HSVhsv(219, 72%, 67%)
CMYKcmyk(71.5%, 46.5%, 0%, 32.5%)
CIE-LABlab(40.06, 12.90, -47.23)
CIE-LCHlch(40.06, 48.96, 285.28°)
OKLaboklab(48.75% -0.0201 -0.1353)
OKLCHoklch(48.75% 0.137 261.5)
XYZxyz(12.5375, 11.2845, 40.5391)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CAC #AC8131
analogous
#3199AC #315CAC #4331AC
triadic
#315CAC #AC315C #5CAC31
tetradic
#315CAC #AC3199 #AC8131 #31AC43
square
#315CAC #AC3199 #AC8131 #31AC43
split-complementary
#315CAC #AC4331 #99AC31
monochromatic
#16294D #23437C #315CAC #4E7ACC #7D9EDA

Accessibility & contrast

On white

6.45
#315CAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#315CAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CAC
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CAC#FFFFFF#000000##FFFFFF
##315CAC1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AF
Deuteranopia (green-blind)
#1859AA
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315cac;
/* rgb */ color: rgb(49, 92, 172);
/* oklch */ color: oklch(48.7% 0.137 261.5);
Tailwind
colors: {
  custom: {
    50: '#7889c5',
    500: '#315cac',
    950: '#000000',
  },
}
SCSS
$custom: #315cac;
$custom-light: #7889c5;
$custom-dark: #000000;
JSON
{
  "hex": "#315cac",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 172
  },
  "hsl": {
    "h": 219.024,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48745,
    "c": 0.1368,
    "h": 261.5
  },
  "luminance": 0.11286
}

Semantic roles & 50–950 ramp

primary
#315CAC
secondary
#C3A876
accent
#AA49DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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