#315CA2#315CA2

#315CA2 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.1% C 0.123 H 259.7°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#315CA2
RGBrgb(49, 92, 162)
HSLhsl(217, 54%, 41%)
HSVhsv(217, 70%, 64%)
CMYKcmyk(69.8%, 43.2%, 0%, 36.5%)
CIE-LABlab(39.44, 9.16, -42.29)
CIE-LCHlch(39.44, 43.27, 282.22°)
OKLaboklab(48.07% -0.022 -0.1208)
OKLCHoklch(48.07% 0.123 259.7)
XYZxyz(11.6130, 10.9147, 35.6701)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CA2 #A27731
analogous
#3195A2 #315CA2 #3F31A2
triadic
#315CA2 #A2315C #5CA231
tetradic
#315CA2 #A23195 #A27731 #31A23F
square
#315CA2 #A23195 #A27731 #31A23F
split-complementary
#315CA2 #A23F31 #95A231
monochromatic
#152744 #234173 #315CA2 #4879C8 #779BD6

Accessibility & contrast

On white

6.60
#315CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#315CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CA2
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CA2#FFFFFF#000000##FFFFFF
##315CA21.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B63A5
Deuteranopia (green-blind)
#2858A1
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #315ca2;
/* rgb */ color: rgb(49, 92, 162);
/* oklch */ color: oklch(48.1% 0.123 259.7);
Tailwind
colors: {
  custom: {
    50: '#7689be',
    500: '#315ca2',
    950: '#000000',
  },
}
SCSS
$custom: #315ca2;
$custom-light: #7689be;
$custom-dark: #000000;
JSON
{
  "hex": "#315ca2",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 162
  },
  "hsl": {
    "h": 217.168,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48068,
    "c": 0.12278,
    "h": 259.7
  },
  "luminance": 0.10916
}

Semantic roles & 50–950 ramp

primary
#315CA2
secondary
#BEA171
accent
#A54BDD
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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