#315DC7#315DC7

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

Color values

HEX#315DC7
RGBrgb(49, 93, 199)
HSLhsl(222, 60%, 49%)
HSVhsv(222, 75%, 78%)
CMYKcmyk(75.4%, 53.3%, 0%, 22%)
CIE-LABlab(42.16, 22.40, -59.62)
CIE-LCHlch(42.16, 63.69, 290.59°)
OKLaboklab(50.93% -0.0175 -0.1717)
OKLCHoklch(50.93% 0.173 264.2)
XYZxyz(15.4861, 12.6035, 55.6383)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DC7 #C79B31
analogous
#31A8C7 #315DC7 #5031C7
triadic
#315DC7 #C7315D #5DC731
tetradic
#315DC7 #C731A8 #C79B31 #31C750
square
#315DC7 #C731A8 #C79B31 #31C750
split-complementary
#315DC7 #C75031 #A8C731
monochromatic
#192F65 #254696 #315DC7 #5E81D7 #8FA8E3

Accessibility & contrast

On white

5.96
#315DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#315DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DC7
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DC7#FFFFFF#000000##FFFFFF
##315DC71.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A6BCB
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315dc7;
/* rgb */ color: rgb(49, 93, 199);
/* oklch */ color: oklch(50.9% 0.173 264.2);
Tailwind
colors: {
  custom: {
    50: '#7e8ad9',
    500: '#315dc7',
    950: '#000000',
  },
}
SCSS
$custom: #315dc7;
$custom-light: #7e8ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#315dc7",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 222.4,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50933,
    "c": 0.17263,
    "h": 264.2
  },
  "luminance": 0.12605
}

Semantic roles & 50–950 ramp

primary
#315DC7
secondary
#CEB986
accent
#B544E4
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #315DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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