#315CC2#315CC2

#315CC2 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.3% C 0.167 H 264.1°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#315CC2
RGBrgb(49, 92, 194)
HSLhsl(222, 60%, 48%)
HSVhsv(222, 75%, 76%)
CMYKcmyk(74.7%, 52.6%, 0%, 23.9%)
CIE-LABlab(41.53, 21.18, -57.74)
CIE-LCHlch(41.53, 61.50, 290.14°)
OKLaboklab(50.35% -0.0172 -0.1662)
OKLCHoklch(50.35% 0.167 264.1)
XYZxyz(14.8279, 12.2007, 52.6020)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CC2 #C29731
analogous
#31A4C2 #315CC2 #4E31C2
triadic
#315CC2 #C2315C #5CC231
tetradic
#315CC2 #C231A4 #C29731 #31C24E
square
#315CC2 #C231A4 #C29731 #31C24E
split-complementary
#315CC2 #C24E31 #A4C231
monochromatic
#182E60 #254591 #315CC2 #5B7FD6 #8CA5E2

Accessibility & contrast

On white

6.10
#315CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#315CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CC2
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CC2#FFFFFF#000000##FFFFFF
##315CC21.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1469C6
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315cc2;
/* rgb */ color: rgb(49, 92, 194);
/* oklch */ color: oklch(50.3% 0.167 264.1);
Tailwind
colors: {
  custom: {
    50: '#7d89d5',
    500: '#315cc2',
    950: '#000000',
  },
}
SCSS
$custom: #315cc2;
$custom-light: #7d89d5;
$custom-dark: #000000;
JSON
{
  "hex": "#315cc2",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 222.207,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50345,
    "c": 0.16711,
    "h": 264.1
  },
  "luminance": 0.12202
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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