#315AB5#315AB5

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

Color values

HEX#315AB5
RGBrgb(49, 90, 181)
HSLhsl(221, 57%, 45%)
HSVhsv(221, 73%, 71%)
CMYKcmyk(72.9%, 50.3%, 0%, 29%)
CIE-LABlab(40.08, 17.59, -52.49)
CIE-LCHlch(40.08, 55.36, 288.53°)
OKLaboklab(48.95% -0.017 -0.1508)
OKLCHoklch(48.95% 0.152 263.6)
XYZxyz(13.2603, 11.3001, 45.1894)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AB5 #B58C31
analogous
#319CB5 #315AB5 #4A31B5
triadic
#315AB5 #B5315A #5AB531
tetradic
#315AB5 #B5319C #B58C31 #31B54A
square
#315AB5 #B5319C #B58C31 #31B54A
split-complementary
#315AB5 #B54A31 #9CB531
monochromatic
#172A55 #244285 #315AB5 #537AD0 #839FDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315AB5#FFFFFF#000000##FFFFFF
##315AB51.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)
#2465B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315ab5;
/* rgb */ color: rgb(49, 90, 181);
/* oklch */ color: oklch(49.0% 0.152 263.6);
Tailwind
colors: {
  custom: {
    50: '#7a88cc',
    500: '#315ab5',
    950: '#000000',
  },
}
SCSS
$custom: #315ab5;
$custom-light: #7a88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#315ab5",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 181
  },
  "hsl": {
    "h": 221.364,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48954,
    "c": 0.15178,
    "h": 263.6
  },
  "luminance": 0.11301
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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