#315DC2#315DC2

#315DC2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.6% C 0.166 H 263.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#315DC2
RGBrgb(49, 93, 194)
HSLhsl(222, 60%, 48%)
HSVhsv(222, 75%, 76%)
CMYKcmyk(74.7%, 52.1%, 0%, 23.9%)
CIE-LABlab(41.81, 20.53, -57.29)
CIE-LCHlch(41.81, 60.86, 289.71°)
OKLaboklab(50.55% -0.018 -0.1649)
OKLCHoklch(50.55% 0.166 263.8)
XYZxyz(14.9151, 12.3751, 52.6310)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DC2 #C29631
analogous
#31A6C2 #315DC2 #4D31C2
triadic
#315DC2 #C2315D #5DC231
tetradic
#315DC2 #C231A6 #C29631 #31C24D
square
#315DC2 #C231A6 #C29631 #31C24D
split-complementary
#315DC2 #C24D31 #A6C231
monochromatic
#182E60 #254691 #315DC2 #5B80D6 #8CA6E2

Accessibility & contrast

On white

6.04
#315DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#315DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DC2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DC2#FFFFFF#000000##FFFFFF
##315DC21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186AC6
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315dc2;
/* rgb */ color: rgb(49, 93, 194);
/* oklch */ color: oklch(50.6% 0.166 263.8);
Tailwind
colors: {
  custom: {
    50: '#7d8ad5',
    500: '#315dc2',
    950: '#000000',
  },
}
SCSS
$custom: #315dc2;
$custom-light: #7d8ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#315dc2",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 194
  },
  "hsl": {
    "h": 221.793,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50553,
    "c": 0.16588,
    "h": 263.8
  },
  "luminance": 0.12377
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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