#315FB1#315FB1

#315FB1 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.140 H 261.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#315FB1
RGBrgb(49, 95, 177)
HSLhsl(218, 57%, 44%)
HSVhsv(218, 72%, 69%)
CMYKcmyk(72.3%, 46.3%, 0%, 30.6%)
CIE-LABlab(41.23, 12.84, -48.29)
CIE-LCHlch(41.23, 49.97, 284.89°)
OKLaboklab(49.75% -0.022 -0.1384)
OKLCHoklch(49.75% 0.14 261)
XYZxyz(13.2918, 12.0103, 43.2042)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FB1 #B18331
analogous
#319FB1 #315FB1 #4331B1
triadic
#315FB1 #B1315F #5FB131
tetradic
#315FB1 #B1319F #B18331 #31B143
square
#315FB1 #B1319F #B18331 #31B143
split-complementary
#315FB1 #B14331 #9FB131
monochromatic
#162C51 #244581 #315FB1 #517ECF #80A1DC

Accessibility & contrast

On white

6.17
#315FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#315FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FB1
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FB1#FFFFFF#000000##FFFFFF
##315FB11.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B4
Deuteranopia (green-blind)
#195CAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315fb1;
/* rgb */ color: rgb(49, 95, 177);
/* oklch */ color: oklch(49.8% 0.140 261.0);
Tailwind
colors: {
  custom: {
    50: '#798bc9',
    500: '#315fb1',
    950: '#000000',
  },
}
SCSS
$custom: #315fb1;
$custom-light: #798bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#315fb1",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 177
  },
  "hsl": {
    "h": 218.438,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49752,
    "c": 0.14011,
    "h": 261
  },
  "luminance": 0.12012
}

Semantic roles & 50–950 ramp

primary
#315FB1
secondary
#C5AA79
accent
#A948E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #315FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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