#315DC6#315DC6

#315DC6 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.9% C 0.171 H 264.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#315DC6
RGBrgb(49, 93, 198)
HSLhsl(222, 60%, 48%)
HSVhsv(222, 75%, 78%)
CMYKcmyk(75.3%, 53%, 0%, 22.4%)
CIE-LABlab(42.09, 22.03, -59.16)
CIE-LCHlch(42.09, 63.12, 290.42°)
OKLaboklab(50.86% -0.0176 -0.1704)
OKLCHoklch(50.86% 0.171 264.1)
XYZxyz(15.3704, 12.5572, 55.0288)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DC6 #C69A31
analogous
#31A7C6 #315DC6 #4F31C6
triadic
#315DC6 #C6315D #5DC631
tetradic
#315DC6 #C631A7 #C69A31 #31C64F
square
#315DC6 #C631A7 #C69A31 #31C64F
split-complementary
#315DC6 #C64F31 #A7C631
monochromatic
#192F64 #254695 #315DC6 #5D81D7 #8EA7E3

Accessibility & contrast

On white

5.98
#315DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#315DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DC6
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DC6#FFFFFF#000000##FFFFFF
##315DC61.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6BCA
Deuteranopia (green-blind)
#005DC4
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315dc6;
/* rgb */ color: rgb(49, 93, 198);
/* oklch */ color: oklch(50.9% 0.171 264.1);
Tailwind
colors: {
  custom: {
    50: '#7e8ad8',
    500: '#315dc6',
    950: '#000000',
  },
}
SCSS
$custom: #315dc6;
$custom-light: #7e8ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#315dc6",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 198
  },
  "hsl": {
    "h": 222.282,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50856,
    "c": 0.17129,
    "h": 264.1
  },
  "luminance": 0.12559
}

Semantic roles & 50–950 ramp

primary
#315DC6
secondary
#CEB885
accent
#B444E3
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #315DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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