#315BC7#315BC7

#315BC7 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.5% C 0.175 H 264.7°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#315BC7
RGBrgb(49, 91, 199)
HSLhsl(223, 60%, 49%)
HSVhsv(223, 75%, 78%)
CMYKcmyk(75.4%, 54.3%, 0%, 22%)
CIE-LABlab(41.62, 23.70, -60.49)
CIE-LCHlch(41.62, 64.97, 291.39°)
OKLaboklab(50.53% -0.016 -0.1743)
OKLCHoklch(50.53% 0.175 264.7)
XYZxyz(15.3129, 12.2570, 55.5806)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BC7 #C79D31
analogous
#31A6C7 #315BC7 #5231C7
triadic
#315BC7 #C7315B #5BC731
tetradic
#315BC7 #C731A6 #C79D31 #31C752
square
#315BC7 #C731A6 #C79D31 #31C752
split-complementary
#315BC7 #C75231 #A6C731
monochromatic
#192E65 #254596 #315BC7 #5E80D7 #8FA7E3

Accessibility & contrast

On white

6.08
#315BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#315BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BC7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BC7#FFFFFF#000000##FFFFFF
##315BC71.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315bc7;
/* rgb */ color: rgb(49, 91, 199);
/* oklch */ color: oklch(50.5% 0.175 264.7);
Tailwind
colors: {
  custom: {
    50: '#7e88d9',
    500: '#315bc7',
    950: '#000000',
  },
}
SCSS
$custom: #315bc7;
$custom-light: #7e88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#315bc7",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 223.2,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50526,
    "c": 0.17508,
    "h": 264.7
  },
  "luminance": 0.12259
}

Semantic roles & 50–950 ramp

primary
#315BC7
secondary
#CEBA86
accent
#B744E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #315BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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