#315EC8#315EC8

#315EC8 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.2% C 0.173 H 264.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#315EC8
RGBrgb(49, 94, 200)
HSLhsl(222, 61%, 49%)
HSVhsv(222, 76%, 78%)
CMYKcmyk(75.5%, 53%, 0%, 21.6%)
CIE-LABlab(42.50, 22.13, -59.64)
CIE-LCHlch(42.50, 63.62, 290.35°)
OKLaboklab(51.21% -0.0182 -0.1718)
OKLCHoklch(51.21% 0.173 264)
XYZxyz(15.6909, 12.8268, 56.2812)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EC8 #C89B31
analogous
#31AAC8 #315EC8 #4F31C8
triadic
#315EC8 #C8315E #5EC831
tetradic
#315EC8 #C831AA #C89B31 #31C84F
square
#315EC8 #C831AA #C89B31 #31C84F
split-complementary
#315EC8 #C84F31 #AAC831
monochromatic
#193066 #254797 #315EC8 #5F83D8 #90A9E4

Accessibility & contrast

On white

5.89
#315EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#315EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EC8
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EC8#FFFFFF#000000##FFFFFF
##315EC81.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6CCC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #315ec8;
/* rgb */ color: rgb(49, 94, 200);
/* oklch */ color: oklch(51.2% 0.173 264.0);
Tailwind
colors: {
  custom: {
    50: '#7e8bd9',
    500: '#315ec8',
    950: '#000000',
  },
}
SCSS
$custom: #315ec8;
$custom-light: #7e8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#315ec8",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 200
  },
  "hsl": {
    "h": 222.119,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51214,
    "c": 0.17276,
    "h": 264
  },
  "luminance": 0.12829
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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