#315BB5#315BB5

#315BB5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.151 H 263.2°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#315BB5
RGBrgb(49, 91, 181)
HSLhsl(221, 57%, 45%)
HSVhsv(221, 73%, 71%)
CMYKcmyk(72.9%, 49.7%, 0%, 29%)
CIE-LABlab(40.36, 16.94, -52.04)
CIE-LCHlch(40.36, 54.73, 288.03°)
OKLaboklab(49.17% -0.0179 -0.1495)
OKLCHoklch(49.17% 0.151 263.2)
XYZxyz(13.3452, 11.4699, 45.2177)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BB5 #B58B31
analogous
#319DB5 #315BB5 #4931B5
triadic
#315BB5 #B5315B #5BB531
tetradic
#315BB5 #B5319D #B58B31 #31B549
square
#315BB5 #B5319D #B58B31 #31B549
split-complementary
#315BB5 #B54931 #9DB531
monochromatic
#172B55 #244385 #315BB5 #537BD0 #83A0DD

Accessibility & contrast

On white

6.37
#315BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#315BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BB5
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BB5#FFFFFF#000000##FFFFFF
##315BB51.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2766B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315bb5;
/* rgb */ color: rgb(49, 91, 181);
/* oklch */ color: oklch(49.2% 0.151 263.2);
Tailwind
colors: {
  custom: {
    50: '#7a88cc',
    500: '#315bb5',
    950: '#000000',
  },
}
SCSS
$custom: #315bb5;
$custom-light: #7a88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#315bb5",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 220.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49167,
    "c": 0.15055,
    "h": 263.2
  },
  "luminance": 0.11471
}

Semantic roles & 50–950 ramp

primary
#315BB5
secondary
#C7AF7B
accent
#B047E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #315BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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