#315CA6#315CA6

#315CA6 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.3% C 0.128 H 260.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#315CA6
RGBrgb(49, 92, 166)
HSLhsl(218, 54%, 42%)
HSVhsv(218, 70%, 65%)
CMYKcmyk(70.5%, 44.6%, 0%, 34.9%)
CIE-LABlab(39.68, 10.65, -44.28)
CIE-LCHlch(39.68, 45.54, 283.53°)
OKLaboklab(48.33% -0.0212 -0.1266)
OKLCHoklch(48.33% 0.128 260.5)
XYZxyz(11.9742, 11.0592, 37.5726)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CA6 #A67B31
analogous
#3197A6 #315CA6 #4131A6
triadic
#315CA6 #A6315C #5CA631
tetradic
#315CA6 #A63197 #A67B31 #31A641
square
#315CA6 #A63197 #A67B31 #31A641
split-complementary
#315CA6 #A64131 #97A631
monochromatic
#152847 #234277 #315CA6 #4A79CA #7A9CD8

Accessibility & contrast

On white

6.54
#315CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#315CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CA6
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CA6#FFFFFF#000000##FFFFFF
##315CA61.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3863A9
Deuteranopia (green-blind)
#2358A4
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #315ca6;
/* rgb */ color: rgb(49, 92, 166);
/* oklch */ color: oklch(48.3% 0.128 260.5);
Tailwind
colors: {
  custom: {
    50: '#7789c1',
    500: '#315ca6',
    950: '#000000',
  },
}
SCSS
$custom: #315ca6;
$custom-light: #7789c1;
$custom-dark: #000000;
JSON
{
  "hex": "#315ca6",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 166
  },
  "hsl": {
    "h": 217.949,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48334,
    "c": 0.1284,
    "h": 260.5
  },
  "luminance": 0.1106
}

Semantic roles & 50–950 ramp

primary
#315CA6
secondary
#C0A473
accent
#A74ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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