#315FB5#315FB5

#315FB5 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.0% C 0.146 H 261.6°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#315FB5
RGBrgb(49, 95, 181)
HSLhsl(219, 57%, 45%)
HSVhsv(219, 73%, 71%)
CMYKcmyk(72.9%, 47.5%, 0%, 29%)
CIE-LABlab(41.49, 14.34, -50.23)
CIE-LCHlch(41.49, 52.23, 285.94°)
OKLaboklab(50.03% -0.0214 -0.1441)
OKLCHoklch(50.03% 0.146 261.6)
XYZxyz(13.6963, 12.1721, 45.3347)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FB5 #B58731
analogous
#31A1B5 #315FB5 #4531B5
triadic
#315FB5 #B5315F #5FB531
tetradic
#315FB5 #B531A1 #B58731 #31B545
square
#315FB5 #B531A1 #B58731 #31B545
split-complementary
#315FB5 #B54531 #A1B531
monochromatic
#172C55 #244685 #315FB5 #537FD0 #83A2DD

Accessibility & contrast

On white

6.11
#315FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #315FB5
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FB5#FFFFFF#000000##FFFFFF
##315FB51.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3168B8
Deuteranopia (green-blind)
#0E5CB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315fb5;
/* rgb */ color: rgb(49, 95, 181);
/* oklch */ color: oklch(50.0% 0.146 261.6);
Tailwind
colors: {
  custom: {
    50: '#7a8bcc',
    500: '#315fb5',
    950: '#000000',
  },
}
SCSS
$custom: #315fb5;
$custom-light: #7a8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#315fb5",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 219.091,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50031,
    "c": 0.14564,
    "h": 261.6
  },
  "luminance": 0.12174
}

Semantic roles & 50–950 ramp

primary
#315FB5
secondary
#C7AC7B
accent
#AB47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #315FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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