#315AC2#315AC2

#315AC2 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.9% C 0.170 H 264.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#315AC2
RGBrgb(49, 90, 194)
HSLhsl(223, 60%, 48%)
HSVhsv(223, 75%, 76%)
CMYKcmyk(74.7%, 53.6%, 0%, 23.9%)
CIE-LABlab(40.99, 22.48, -58.62)
CIE-LCHlch(40.99, 62.78, 290.98°)
OKLaboklab(49.93% -0.0157 -0.1688)
OKLCHoklch(49.93% 0.17 264.7)
XYZxyz(14.6569, 11.8587, 52.5450)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AC2 #C29931
analogous
#31A3C2 #315AC2 #5031C2
triadic
#315AC2 #C2315A #5AC231
tetradic
#315AC2 #C231A3 #C29931 #31C250
square
#315AC2 #C231A3 #C29931 #31C250
split-complementary
#315AC2 #C25031 #A3C231
monochromatic
#182D60 #254391 #315AC2 #5B7DD6 #8CA4E2

Accessibility & contrast

On white

6.23
#315AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#315AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315AC2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315AC2#FFFFFF#000000##FFFFFF
##315AC21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0668C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315ac2;
/* rgb */ color: rgb(49, 90, 194);
/* oklch */ color: oklch(49.9% 0.170 264.7);
Tailwind
colors: {
  custom: {
    50: '#7d88d5',
    500: '#315ac2',
    950: '#000000',
  },
}
SCSS
$custom: #315ac2;
$custom-light: #7d88d5;
$custom-dark: #000000;
JSON
{
  "hex": "#315ac2",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 194
  },
  "hsl": {
    "h": 223.034,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49934,
    "c": 0.16957,
    "h": 264.7
  },
  "luminance": 0.1186
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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