#315BB1#315BB1

#315BB1 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.145 H 262.7°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#315BB1
RGBrgb(49, 91, 177)
HSLhsl(220, 57%, 44%)
HSVhsv(220, 72%, 69%)
CMYKcmyk(72.3%, 48.6%, 0%, 30.6%)
CIE-LABlab(40.09, 15.44, -50.12)
CIE-LCHlch(40.09, 52.44, 287.12°)
OKLaboklab(48.88% -0.0185 -0.1438)
OKLCHoklch(48.88% 0.145 262.7)
XYZxyz(12.9407, 11.3081, 43.0871)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BB1 #B18731
analogous
#319BB1 #315BB1 #4731B1
triadic
#315BB1 #B1315B #5BB131
tetradic
#315BB1 #B1319B #B18731 #31B147
square
#315BB1 #B1319B #B18731 #31B147
split-complementary
#315BB1 #B14731 #9BB131
monochromatic
#162A51 #244281 #315BB1 #517ACF #809EDC

Accessibility & contrast

On white

6.44
#315BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#315BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BB1
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BB1#FFFFFF#000000##FFFFFF
##315BB11.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C65B4
Deuteranopia (green-blind)
#0459AF
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315bb1;
/* rgb */ color: rgb(49, 91, 177);
/* oklch */ color: oklch(48.9% 0.145 262.7);
Tailwind
colors: {
  custom: {
    50: '#7a88c9',
    500: '#315bb1',
    950: '#000000',
  },
}
SCSS
$custom: #315bb1;
$custom-light: #7a88c9;
$custom-dark: #000000;
JSON
{
  "hex": "#315bb1",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 177
  },
  "hsl": {
    "h": 220.313,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48879,
    "c": 0.145,
    "h": 262.7
  },
  "luminance": 0.11309
}

Semantic roles & 50–950 ramp

primary
#315BB1
secondary
#C5AC79
accent
#AE48E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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