#315FA4#315FA4

#315FA4 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.122 H 258.4°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#315FA4
RGBrgb(49, 95, 164)
HSLhsl(216, 54%, 42%)
HSVhsv(216, 70%, 64%)
CMYKcmyk(70.1%, 42.1%, 0%, 35.7%)
CIE-LABlab(40.44, 7.97, -41.88)
CIE-LCHlch(40.44, 42.64, 280.77°)
OKLaboklab(48.88% -0.0245 -0.1195)
OKLCHoklch(48.88% 0.122 258.4)
XYZxyz(12.0573, 11.5165, 36.7022)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FA4 #A47631
analogous
#3199A4 #315FA4 #3D31A4
triadic
#315FA4 #A4315F #5FA431
tetradic
#315FA4 #A43199 #A47631 #31A43D
square
#315FA4 #A43199 #A47631 #31A43D
split-complementary
#315FA4 #A43D31 #99A431
monochromatic
#152846 #234475 #315FA4 #497CC9 #799ED7

Accessibility & contrast

On white

6.36
#315FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#315FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FA4
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FA4#FFFFFF#000000##FFFFFF
##315FA41.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F65A7
Deuteranopia (green-blind)
#2C5AA3
Tritanopia (blue-blind)
#006F79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315fa4;
/* rgb */ color: rgb(49, 95, 164);
/* oklch */ color: oklch(48.9% 0.122 258.4);
Tailwind
colors: {
  custom: {
    50: '#778bbf',
    500: '#315fa4',
    950: '#000000',
  },
}
SCSS
$custom: #315fa4;
$custom-light: #778bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#315fa4",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 164
  },
  "hsl": {
    "h": 216,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48881,
    "c": 0.12203,
    "h": 258.4
  },
  "luminance": 0.11518
}

Semantic roles & 50–950 ramp

primary
#315FA4
secondary
#BFA072
accent
#A34ADD
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #315FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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