#315FC2#315FC2

#315FC2 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.0% C 0.163 H 263.1°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#315FC2
RGBrgb(49, 95, 194)
HSLhsl(221, 60%, 48%)
HSVhsv(221, 75%, 76%)
CMYKcmyk(74.7%, 51%, 0%, 23.9%)
CIE-LABlab(42.35, 19.23, -56.41)
CIE-LCHlch(42.35, 59.60, 288.82°)
OKLaboklab(50.97% -0.0196 -0.1622)
OKLCHoklch(50.97% 0.163 263.1)
XYZxyz(15.0930, 12.7308, 52.6903)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FC2 #C29431
analogous
#31A7C2 #315FC2 #4C31C2
triadic
#315FC2 #C2315F #5FC231
tetradic
#315FC2 #C231A7 #C29431 #31C24C
square
#315FC2 #C231A7 #C29431 #31C24C
split-complementary
#315FC2 #C24C31 #A7C231
monochromatic
#182F60 #254791 #315FC2 #5B82D6 #8CA7E2

Accessibility & contrast

On white

5.92
#315FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#315FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FC2
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FC2#FFFFFF#000000##FFFFFF
##315FC21.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206BC6
Deuteranopia (green-blind)
#005EC0
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #315fc2;
/* rgb */ color: rgb(49, 95, 194);
/* oklch */ color: oklch(51.0% 0.163 263.1);
Tailwind
colors: {
  custom: {
    50: '#7d8bd5',
    500: '#315fc2',
    950: '#000000',
  },
}
SCSS
$custom: #315fc2;
$custom-light: #7d8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#315fc2",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 220.966,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5097,
    "c": 0.16343,
    "h": 263.1
  },
  "luminance": 0.12732
}

Semantic roles & 50–950 ramp

primary
#315FC2
secondary
#CCB583
accent
#B145E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #315FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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