#315BC2#315BC2

#315BC2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.1% C 0.168 H 264.4°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#315BC2
RGBrgb(49, 91, 194)
HSLhsl(223, 60%, 48%)
HSVhsv(223, 75%, 76%)
CMYKcmyk(74.7%, 53.1%, 0%, 23.9%)
CIE-LABlab(41.26, 21.83, -58.18)
CIE-LCHlch(41.26, 62.14, 290.56°)
OKLaboklab(50.14% -0.0164 -0.1675)
OKLCHoklch(50.14% 0.168 264.4)
XYZxyz(14.7419, 12.0286, 52.5733)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BC2 #C29831
analogous
#31A3C2 #315BC2 #5031C2
triadic
#315BC2 #C2315B #5BC231
tetradic
#315BC2 #C231A3 #C29831 #31C250
square
#315BC2 #C231A3 #C29831 #31C250
split-complementary
#315BC2 #C25031 #A3C231
monochromatic
#182D60 #254491 #315BC2 #5B7ED6 #8CA5E2

Accessibility & contrast

On white

6.17
#315BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#315BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BC2
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BC2#FFFFFF#000000##FFFFFF
##315BC21.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E68C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315bc2;
/* rgb */ color: rgb(49, 91, 194);
/* oklch */ color: oklch(50.1% 0.168 264.4);
Tailwind
colors: {
  custom: {
    50: '#7d88d5',
    500: '#315bc2',
    950: '#000000',
  },
}
SCSS
$custom: #315bc2;
$custom-light: #7d88d5;
$custom-dark: #000000;
JSON
{
  "hex": "#315bc2",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 222.621,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50139,
    "c": 0.16834,
    "h": 264.4
  },
  "luminance": 0.1203
}

Semantic roles & 50–950 ramp

primary
#315BC2
secondary
#CCB783
accent
#B545E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #315BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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