#315FB7#315FB7

#315FB7 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.2% C 0.148 H 261.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#315FB7
RGBrgb(49, 95, 183)
HSLhsl(219, 58%, 45%)
HSVhsv(219, 73%, 72%)
CMYKcmyk(73.2%, 48.1%, 0%, 28.2%)
CIE-LABlab(41.62, 15.09, -51.19)
CIE-LCHlch(41.62, 53.37, 286.43°)
OKLaboklab(50.17% -0.0211 -0.1469)
OKLCHoklch(50.17% 0.148 261.8)
XYZxyz(13.9030, 12.2548, 46.4233)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FB7 #B78931
analogous
#31A2B7 #315FB7 #4631B7
triadic
#315FB7 #B7315F #5FB731
tetradic
#315FB7 #B731A2 #B78931 #31B746
square
#315FB7 #B731A2 #B78931 #31B746
split-complementary
#315FB7 #B74631 #A2B731
monochromatic
#172D56 #244687 #315FB7 #547FD1 #84A3DE

Accessibility & contrast

On white

6.08
#315FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#315FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FB7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FB7#FFFFFF#000000##FFFFFF
##315FB71.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F69BA
Deuteranopia (green-blind)
#065CB5
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315fb7;
/* rgb */ color: rgb(49, 95, 183);
/* oklch */ color: oklch(50.2% 0.148 261.8);
Tailwind
colors: {
  custom: {
    50: '#7b8bcd',
    500: '#315fb7',
    950: '#000000',
  },
}
SCSS
$custom: #315fb7;
$custom-light: #7b8bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#315fb7",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 183
  },
  "hsl": {
    "h": 219.403,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50172,
    "c": 0.14839,
    "h": 261.8
  },
  "luminance": 0.12256
}

Semantic roles & 50–950 ramp

primary
#315FB7
secondary
#C8AE7C
accent
#AC47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #315FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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