#315DC4#315DC4

#315DC4 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.7% C 0.169 H 263.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#315DC4
RGBrgb(49, 93, 196)
HSLhsl(222, 60%, 48%)
HSVhsv(222, 75%, 77%)
CMYKcmyk(75%, 52.6%, 0%, 23.1%)
CIE-LABlab(41.95, 21.28, -58.23)
CIE-LCHlch(41.95, 61.99, 290.07°)
OKLaboklab(50.7% -0.0178 -0.1676)
OKLCHoklch(50.7% 0.169 263.9)
XYZxyz(15.1412, 12.4655, 53.8219)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DC4 #C49831
analogous
#31A6C4 #315DC4 #4F31C4
triadic
#315DC4 #C4315D #5DC431
tetradic
#315DC4 #C431A6 #C49831 #31C44F
square
#315DC4 #C431A6 #C49831 #31C44F
split-complementary
#315DC4 #C44F31 #A6C431
monochromatic
#192F62 #254693 #315DC4 #5C81D6 #8DA7E2

Accessibility & contrast

On white

6.01
#315DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #315DC4
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DC4#FFFFFF#000000##FFFFFF
##315DC41.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146AC8
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315dc4;
/* rgb */ color: rgb(49, 93, 196);
/* oklch */ color: oklch(50.7% 0.169 263.9);
Tailwind
colors: {
  custom: {
    50: '#7e8ad7',
    500: '#315dc4',
    950: '#000000',
  },
}
SCSS
$custom: #315dc4;
$custom-light: #7e8ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#315dc4",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 196
  },
  "hsl": {
    "h": 222.041,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50704,
    "c": 0.16859,
    "h": 263.9
  },
  "luminance": 0.12467
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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