#315FB6#315FB6

#315FB6 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.147 H 261.7°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#315FB6
RGBrgb(49, 95, 182)
HSLhsl(219, 58%, 45%)
HSVhsv(219, 73%, 71%)
CMYKcmyk(73.1%, 47.8%, 0%, 28.6%)
CIE-LABlab(41.55, 14.72, -50.71)
CIE-LCHlch(41.55, 52.80, 286.18°)
OKLaboklab(50.1% -0.0212 -0.1455)
OKLCHoklch(50.1% 0.147 261.7)
XYZxyz(13.7993, 12.2133, 45.8770)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FB6 #B68831
analogous
#31A2B6 #315FB6 #4531B6
triadic
#315FB6 #B6315F #5FB631
tetradic
#315FB6 #B631A2 #B68831 #31B645
square
#315FB6 #B631A2 #B68831 #31B645
split-complementary
#315FB6 #B64531 #A2B631
monochromatic
#172D56 #244686 #315FB6 #537FD1 #84A3DE

Accessibility & contrast

On white

6.10
#315FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#315FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FB6
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FB6#FFFFFF#000000##FFFFFF
##315FB61.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3069B9
Deuteranopia (green-blind)
#0A5CB4
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315fb6;
/* rgb */ color: rgb(49, 95, 182);
/* oklch */ color: oklch(50.1% 0.147 261.7);
Tailwind
colors: {
  custom: {
    50: '#7a8bcc',
    500: '#315fb6',
    950: '#000000',
  },
}
SCSS
$custom: #315fb6;
$custom-light: #7a8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#315fb6",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 182
  },
  "hsl": {
    "h": 219.248,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50101,
    "c": 0.14702,
    "h": 261.7
  },
  "luminance": 0.12215
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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