#315FC7#315FC7

#315FC7 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.3% C 0.170 H 263.6°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#315FC7
RGBrgb(49, 95, 199)
HSLhsl(222, 60%, 49%)
HSVhsv(222, 75%, 78%)
CMYKcmyk(75.4%, 52.3%, 0%, 22%)
CIE-LABlab(42.70, 21.11, -58.74)
CIE-LCHlch(42.70, 62.42, 289.76°)
OKLaboklab(51.34% -0.0191 -0.1691)
OKLCHoklch(51.34% 0.17 263.6)
XYZxyz(15.6640, 12.9592, 55.6976)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FC7 #C79931
analogous
#31AAC7 #315FC7 #4E31C7
triadic
#315FC7 #C7315F #5FC731
tetradic
#315FC7 #C731AA #C79931 #31C74E
square
#315FC7 #C731AA #C79931 #31C74E
split-complementary
#315FC7 #C74E31 #AAC731
monochromatic
#193065 #254896 #315FC7 #5E83D7 #8FA9E3

Accessibility & contrast

On white

5.85
#315FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#315FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FC7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FC7#FFFFFF#000000##FFFFFF
##315FC71.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166CCB
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #315fc7;
/* rgb */ color: rgb(49, 95, 199);
/* oklch */ color: oklch(51.3% 0.170 263.6);
Tailwind
colors: {
  custom: {
    50: '#7e8bd9',
    500: '#315fc7',
    950: '#000000',
  },
}
SCSS
$custom: #315fc7;
$custom-light: #7e8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#315fc7",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 199
  },
  "hsl": {
    "h": 221.6,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51344,
    "c": 0.17019,
    "h": 263.6
  },
  "luminance": 0.12961
}

Semantic roles & 50–950 ramp

primary
#315FC7
secondary
#CEB886
accent
#B344E4
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #315FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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