#315FC8#315FC8

#315FC8 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.4% C 0.172 H 263.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#315FC8
RGBrgb(49, 95, 200)
HSLhsl(222, 61%, 49%)
HSVhsv(222, 76%, 78%)
CMYKcmyk(75.5%, 52.5%, 0%, 21.6%)
CIE-LABlab(42.77, 21.48, -59.21)
CIE-LCHlch(42.77, 62.98, 289.94°)
OKLaboklab(51.42% -0.019 -0.1705)
OKLCHoklch(51.42% 0.172 263.7)
XYZxyz(15.7804, 13.0057, 56.3111)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FC8 #C89A31
analogous
#31ABC8 #315FC8 #4F31C8
triadic
#315FC8 #C8315F #5FC831
tetradic
#315FC8 #C831AB #C89A31 #31C84F
square
#315FC8 #C831AB #C89A31 #31C84F
split-complementary
#315FC8 #C84F31 #ABC831
monochromatic
#193066 #254897 #315FC8 #5F83D8 #90A9E4

Accessibility & contrast

On white

5.83
#315FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#315FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FC8
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FC8#FFFFFF#000000##FFFFFF
##315FC81.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146CCC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #315fc8;
/* rgb */ color: rgb(49, 95, 200);
/* oklch */ color: oklch(51.4% 0.172 263.7);
Tailwind
colors: {
  custom: {
    50: '#7e8bd9',
    500: '#315fc8',
    950: '#000000',
  },
}
SCSS
$custom: #315fc8;
$custom-light: #7e8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#315fc8",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 200
  },
  "hsl": {
    "h": 221.722,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5142,
    "c": 0.17154,
    "h": 263.7
  },
  "luminance": 0.13008
}

Semantic roles & 50–950 ramp

primary
#315FC8
secondary
#CEB886
accent
#B344E4
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #315FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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