#315FC6#315FC6

#315FC6 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.169 H 263.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#315FC6
RGBrgb(49, 95, 198)
HSLhsl(221, 60%, 48%)
HSVhsv(221, 75%, 78%)
CMYKcmyk(75.3%, 52%, 0%, 22.4%)
CIE-LABlab(42.63, 20.73, -58.28)
CIE-LCHlch(42.63, 61.85, 289.58°)
OKLaboklab(51.27% -0.0192 -0.1677)
OKLCHoklch(51.27% 0.169 263.5)
XYZxyz(15.5482, 12.9129, 55.0881)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FC6 #C69831
analogous
#31A9C6 #315FC6 #4E31C6
triadic
#315FC6 #C6315F #5FC631
tetradic
#315FC6 #C631A9 #C69831 #31C64E
square
#315FC6 #C631A9 #C69831 #31C64E
split-complementary
#315FC6 #C64E31 #A9C631
monochromatic
#193064 #254795 #315FC6 #5D83D7 #8EA8E3

Accessibility & contrast

On white

5.86
#315FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#315FC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FC6
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FC6#FFFFFF#000000##FFFFFF
##315FC61.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196CCA
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #315fc6;
/* rgb */ color: rgb(49, 95, 198);
/* oklch */ color: oklch(51.3% 0.169 263.5);
Tailwind
colors: {
  custom: {
    50: '#7e8bd8',
    500: '#315fc6',
    950: '#000000',
  },
}
SCSS
$custom: #315fc6;
$custom-light: #7e8bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#315fc6",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 198
  },
  "hsl": {
    "h": 221.477,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51269,
    "c": 0.16884,
    "h": 263.5
  },
  "luminance": 0.12915
}

Semantic roles & 50–950 ramp

primary
#315FC6
secondary
#CEB785
accent
#B244E3
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #315FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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