#315CC7#315CC7

#315CC7 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.7% C 0.174 H 264.5°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#315CC7
RGBrgb(49, 92, 199)
HSLhsl(223, 60%, 49%)
HSVhsv(223, 75%, 78%)
CMYKcmyk(75.4%, 53.8%, 0%, 22%)
CIE-LABlab(41.89, 23.05, -60.06)
CIE-LCHlch(41.89, 64.33, 291.00°)
OKLaboklab(50.73% -0.0168 -0.173)
OKLCHoklch(50.73% 0.174 264.5)
XYZxyz(15.3989, 12.4291, 55.6092)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CC7 #C79C31
analogous
#31A7C7 #315CC7 #5131C7
triadic
#315CC7 #C7315C #5CC731
tetradic
#315CC7 #C731A7 #C79C31 #31C751
square
#315CC7 #C731A7 #C79C31 #31C751
split-complementary
#315CC7 #C75131 #A7C731
monochromatic
#192F65 #254596 #315CC7 #5E81D7 #8FA7E3

Accessibility & contrast

On white

6.02
#315CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#315CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CC7
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CC7#FFFFFF#000000##FFFFFF
##315CC71.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016ACB
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315cc7;
/* rgb */ color: rgb(49, 92, 199);
/* oklch */ color: oklch(50.7% 0.174 264.5);
Tailwind
colors: {
  custom: {
    50: '#7e89d9',
    500: '#315cc7',
    950: '#000000',
  },
}
SCSS
$custom: #315cc7;
$custom-light: #7e89d9;
$custom-dark: #000000;
JSON
{
  "hex": "#315cc7",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 199
  },
  "hsl": {
    "h": 222.8,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50729,
    "c": 0.17385,
    "h": 264.5
  },
  "luminance": 0.12431
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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