#315CA8#315CA8

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

Color values

HEX#315CA8
RGBrgb(49, 92, 168)
HSLhsl(218, 55%, 43%)
HSVhsv(218, 71%, 66%)
CMYKcmyk(70.8%, 45.2%, 0%, 34.1%)
CIE-LABlab(39.80, 11.40, -45.27)
CIE-LCHlch(39.80, 46.68, 284.14°)
OKLaboklab(48.47% -0.0208 -0.1295)
OKLCHoklch(48.47% 0.131 260.9)
XYZxyz(12.1591, 11.1331, 38.5463)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CA8 #A87D31
analogous
#3198A8 #315CA8 #4131A8
triadic
#315CA8 #A8315C #5CA831
tetradic
#315CA8 #A83198 #A87D31 #31A841
square
#315CA8 #A83198 #A87D31 #31A841
split-complementary
#315CA8 #A84131 #98A831
monochromatic
#152849 #234279 #315CA8 #4C79CB #7B9DD8

Accessibility & contrast

On white

6.51
#315CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#315CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CA8
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CA8#FFFFFF#000000##FFFFFF
##315CA81.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3664AB
Deuteranopia (green-blind)
#2059A6
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315ca8;
/* rgb */ color: rgb(49, 92, 168);
/* oklch */ color: oklch(48.5% 0.131 260.9);
Tailwind
colors: {
  custom: {
    50: '#7889c2',
    500: '#315ca8',
    950: '#000000',
  },
}
SCSS
$custom: #315ca8;
$custom-light: #7889c2;
$custom-dark: #000000;
JSON
{
  "hex": "#315ca8",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 168
  },
  "hsl": {
    "h": 218.319,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4847,
    "c": 0.13121,
    "h": 260.9
  },
  "luminance": 0.11134
}

Semantic roles & 50–950 ramp

primary
#315CA8
secondary
#C1A574
accent
#A84ADE
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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