#315EC4#315EC4

#315EC4 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.9% C 0.167 H 263.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#315EC4
RGBrgb(49, 94, 196)
HSLhsl(222, 60%, 48%)
HSVhsv(222, 75%, 77%)
CMYKcmyk(75%, 52%, 0%, 23.1%)
CIE-LABlab(42.22, 20.63, -57.79)
CIE-LCHlch(42.22, 61.36, 289.65°)
OKLaboklab(50.91% -0.0186 -0.1663)
OKLCHoklch(50.91% 0.167 263.6)
XYZxyz(15.2296, 12.6422, 53.8514)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EC4 #C49731
analogous
#31A7C4 #315EC4 #4E31C4
triadic
#315EC4 #C4315E #5EC431
tetradic
#315EC4 #C431A7 #C49731 #31C44E
square
#315EC4 #C431A7 #C49731 #31C44E
split-complementary
#315EC4 #C44E31 #A7C431
monochromatic
#192F62 #254793 #315EC4 #5C81D6 #8DA7E2

Accessibility & contrast

On white

5.95
#315EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#315EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EC4
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EC4#FFFFFF#000000##FFFFFF
##315EC41.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186BC8
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #315ec4;
/* rgb */ color: rgb(49, 94, 196);
/* oklch */ color: oklch(50.9% 0.167 263.6);
Tailwind
colors: {
  custom: {
    50: '#7e8bd7',
    500: '#315ec4',
    950: '#000000',
  },
}
SCSS
$custom: #315ec4;
$custom-light: #7e8bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#315ec4",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 196
  },
  "hsl": {
    "h": 221.633,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50911,
    "c": 0.16737,
    "h": 263.6
  },
  "luminance": 0.12644
}

Semantic roles & 50–950 ramp

primary
#315EC4
secondary
#CDB784
accent
#B345E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #315EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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