#315FC4#315FC4

#315FC4 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.1% C 0.166 H 263.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#315FC4
RGBrgb(49, 95, 196)
HSLhsl(221, 60%, 48%)
HSVhsv(221, 75%, 77%)
CMYKcmyk(75%, 51.5%, 0%, 23.1%)
CIE-LABlab(42.49, 19.98, -57.34)
CIE-LCHlch(42.49, 60.73, 289.21°)
OKLaboklab(51.12% -0.0194 -0.165)
OKLCHoklch(51.12% 0.166 263.3)
XYZxyz(15.3191, 12.8212, 53.8812)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FC4 #C49631
analogous
#31A9C4 #315FC4 #4C31C4
triadic
#315FC4 #C4315F #5FC431
tetradic
#315FC4 #C431A9 #C49631 #31C44C
square
#315FC4 #C431A9 #C49631 #31C44C
split-complementary
#315FC4 #C44C31 #A9C431
monochromatic
#193062 #254793 #315FC4 #5C82D6 #8DA8E2

Accessibility & contrast

On white

5.89
#315FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#315FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FC4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FC4#FFFFFF#000000##FFFFFF
##315FC41.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6BC8
Deuteranopia (green-blind)
#005EC2
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #315fc4;
/* rgb */ color: rgb(49, 95, 196);
/* oklch */ color: oklch(51.1% 0.166 263.3);
Tailwind
colors: {
  custom: {
    50: '#7d8bd7',
    500: '#315fc4',
    950: '#000000',
  },
}
SCSS
$custom: #315fc4;
$custom-light: #7d8bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#315fc4",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 196
  },
  "hsl": {
    "h": 221.224,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51119,
    "c": 0.16614,
    "h": 263.3
  },
  "luminance": 0.12823
}

Semantic roles & 50–950 ramp

primary
#315FC4
secondary
#CDB684
accent
#B245E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #315FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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