#315DC8#315DC8

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

Color values

HEX#315DC8
RGBrgb(49, 93, 200)
HSLhsl(223, 61%, 49%)
HSVhsv(223, 76%, 78%)
CMYKcmyk(75.5%, 53.5%, 0%, 21.6%)
CIE-LABlab(42.23, 22.78, -60.08)
CIE-LCHlch(42.23, 64.25, 290.76°)
OKLaboklab(51.01% -0.0174 -0.1731)
OKLCHoklch(51.01% 0.174 264.2)
XYZxyz(15.6026, 12.6501, 56.2518)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DC8 #C89C31
analogous
#31A9C8 #315DC8 #5131C8
triadic
#315DC8 #C8315D #5DC831
tetradic
#315DC8 #C831A9 #C89C31 #31C851
square
#315DC8 #C831A9 #C89C31 #31C851
split-complementary
#315DC8 #C85131 #A9C831
monochromatic
#192F66 #254697 #315DC8 #5F82D8 #90A8E4

Accessibility & contrast

On white

5.95
#315DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#315DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DC8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DC8#FFFFFF#000000##FFFFFF
##315DC81.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#056BCC
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #315dc8;
/* rgb */ color: rgb(49, 93, 200);
/* oklch */ color: oklch(51.0% 0.174 264.2);
Tailwind
colors: {
  custom: {
    50: '#7e8ad9',
    500: '#315dc8',
    950: '#000000',
  },
}
SCSS
$custom: #315dc8;
$custom-light: #7e8ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#315dc8",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 200
  },
  "hsl": {
    "h": 222.517,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5101,
    "c": 0.17398,
    "h": 264.2
  },
  "luminance": 0.12652
}

Semantic roles & 50–950 ramp

primary
#315DC8
secondary
#CEB986
accent
#B544E4
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #315DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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