#315CC4#315CC4

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

Color values

HEX#315CC4
RGBrgb(49, 92, 196)
HSLhsl(222, 60%, 48%)
HSVhsv(222, 75%, 77%)
CMYKcmyk(75%, 53.1%, 0%, 23.1%)
CIE-LABlab(41.68, 21.93, -58.67)
CIE-LCHlch(41.68, 62.63, 290.49°)
OKLaboklab(50.5% -0.017 -0.169)
OKLCHoklch(50.5% 0.17 264.2)
XYZxyz(15.0540, 12.2911, 53.7929)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CC4 #C49931
analogous
#31A5C4 #315CC4 #4F31C4
triadic
#315CC4 #C4315C #5CC431
tetradic
#315CC4 #C431A5 #C49931 #31C44F
square
#315CC4 #C431A5 #C49931 #31C44F
split-complementary
#315CC4 #C44F31 #A5C431
monochromatic
#192E62 #254593 #315CC4 #5C80D6 #8DA6E2

Accessibility & contrast

On white

6.07
#315CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#315CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CC4
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CC4#FFFFFF#000000##FFFFFF
##315CC41.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E69C8
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#007587
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315cc4;
/* rgb */ color: rgb(49, 92, 196);
/* oklch */ color: oklch(50.5% 0.170 264.2);
Tailwind
colors: {
  custom: {
    50: '#7e89d7',
    500: '#315cc4',
    950: '#000000',
  },
}
SCSS
$custom: #315cc4;
$custom-light: #7e89d7;
$custom-dark: #000000;
JSON
{
  "hex": "#315cc4",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 196
  },
  "hsl": {
    "h": 222.449,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50498,
    "c": 0.16982,
    "h": 264.2
  },
  "luminance": 0.12293
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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