#315FB4#315FB4

#315FB4 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.144 H 261.4°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#315FB4
RGBrgb(49, 95, 180)
HSLhsl(219, 57%, 45%)
HSVhsv(219, 73%, 71%)
CMYKcmyk(72.8%, 47.2%, 0%, 29.4%)
CIE-LABlab(41.42, 13.96, -49.74)
CIE-LCHlch(41.42, 51.67, 285.68°)
OKLaboklab(49.96% -0.0215 -0.1426)
OKLCHoklch(49.96% 0.144 261.4)
XYZxyz(13.5941, 12.1312, 44.7963)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FB4 #B48631
analogous
#31A1B4 #315FB4 #4431B4
triadic
#315FB4 #B4315F #5FB431
tetradic
#315FB4 #B431A1 #B48631 #31B444
square
#315FB4 #B431A1 #B48631 #31B444
split-complementary
#315FB4 #B44431 #A1B431
monochromatic
#172C54 #244684 #315FB4 #527ED0 #82A2DD

Accessibility & contrast

On white

6.13
#315FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#315FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FB4
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FB4#FFFFFF#000000##FFFFFF
##315FB41.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3268B7
Deuteranopia (green-blind)
#115CB2
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315fb4;
/* rgb */ color: rgb(49, 95, 180);
/* oklch */ color: oklch(50.0% 0.144 261.4);
Tailwind
colors: {
  custom: {
    50: '#7a8bcb',
    500: '#315fb4',
    950: '#000000',
  },
}
SCSS
$custom: #315fb4;
$custom-light: #7a8bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#315fb4",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 180
  },
  "hsl": {
    "h": 218.931,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4996,
    "c": 0.14426,
    "h": 261.4
  },
  "luminance": 0.12133
}

Semantic roles & 50–950 ramp

primary
#315FB4
secondary
#C6AC7B
accent
#AB47E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #315FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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