#315BB4#315BB4

#315BB4 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.149 H 263.1°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#315BB4
RGBrgb(49, 91, 180)
HSLhsl(221, 57%, 45%)
HSVhsv(221, 73%, 71%)
CMYKcmyk(72.8%, 49.4%, 0%, 29.4%)
CIE-LABlab(40.29, 16.56, -51.56)
CIE-LCHlch(40.29, 54.16, 287.81°)
OKLaboklab(49.1% -0.018 -0.1481)
OKLCHoklch(49.1% 0.149 263.1)
XYZxyz(13.2430, 11.4290, 44.6793)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BB4 #B48A31
analogous
#319DB4 #315BB4 #4831B4
triadic
#315BB4 #B4315B #5BB431
tetradic
#315BB4 #B4319D #B48A31 #31B448
square
#315BB4 #B4319D #B48A31 #31B448
split-complementary
#315BB4 #B44831 #9DB431
monochromatic
#172A54 #244384 #315BB4 #527BD0 #829FDD

Accessibility & contrast

On white

6.39
#315BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #315BB4
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BB4#FFFFFF#000000##FFFFFF
##315BB41.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2865B7
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315bb4;
/* rgb */ color: rgb(49, 91, 180);
/* oklch */ color: oklch(49.1% 0.149 263.1);
Tailwind
colors: {
  custom: {
    50: '#7a88cb',
    500: '#315bb4',
    950: '#000000',
  },
}
SCSS
$custom: #315bb4;
$custom-light: #7a88cb;
$custom-dark: #000000;
JSON
{
  "hex": "#315bb4",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 180
  },
  "hsl": {
    "h": 220.763,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49095,
    "c": 0.14916,
    "h": 263.1
  },
  "luminance": 0.1143
}

Semantic roles & 50–950 ramp

primary
#315BB4
secondary
#C6AE7B
accent
#AF47E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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