#315CA4#315CA4

#315CA4 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.2% C 0.126 H 260.1°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#315CA4
RGBrgb(49, 92, 164)
HSLhsl(218, 54%, 42%)
HSVhsv(218, 70%, 64%)
CMYKcmyk(70.1%, 43.9%, 0%, 35.7%)
CIE-LABlab(39.56, 9.90, -43.29)
CIE-LCHlch(39.56, 44.41, 282.89°)
OKLaboklab(48.2% -0.0216 -0.1237)
OKLCHoklch(48.2% 0.126 260.1)
XYZxyz(11.7922, 10.9864, 36.6139)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CA4 #A47931
analogous
#3196A4 #315CA4 #3F31A4
triadic
#315CA4 #A4315C #5CA431
tetradic
#315CA4 #A43196 #A47931 #31A43F
square
#315CA4 #A43196 #A47931 #31A43F
split-complementary
#315CA4 #A43F31 #96A431
monochromatic
#152746 #234275 #315CA4 #4979C9 #799CD7

Accessibility & contrast

On white

6.57
#315CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#315CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CA4
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CA4#FFFFFF#000000##FFFFFF
##315CA41.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3963A7
Deuteranopia (green-blind)
#2558A3
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #315ca4;
/* rgb */ color: rgb(49, 92, 164);
/* oklch */ color: oklch(48.2% 0.126 260.1);
Tailwind
colors: {
  custom: {
    50: '#7789bf',
    500: '#315ca4',
    950: '#000000',
  },
}
SCSS
$custom: #315ca4;
$custom-light: #7789bf;
$custom-dark: #000000;
JSON
{
  "hex": "#315ca4",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 164
  },
  "hsl": {
    "h": 217.565,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.482,
    "c": 0.12559,
    "h": 260.1
  },
  "luminance": 0.10988
}

Semantic roles & 50–950 ramp

primary
#315CA4
secondary
#BFA272
accent
#A64ADD
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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