#315FB8#315FB8

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

Color values

HEX#315FB8
RGBrgb(49, 95, 184)
HSLhsl(220, 58%, 46%)
HSVhsv(220, 73%, 72%)
CMYKcmyk(73.4%, 48.4%, 0%, 27.8%)
CIE-LABlab(41.68, 15.47, -51.67)
CIE-LCHlch(41.68, 53.93, 286.67°)
OKLaboklab(50.24% -0.0209 -0.1483)
OKLCHoklch(50.24% 0.15 262)
XYZxyz(14.0075, 12.2966, 46.9734)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FB8 #B88A31
analogous
#31A2B8 #315FB8 #4731B8
triadic
#315FB8 #B8315F #5FB831
tetradic
#315FB8 #B831A2 #B88A31 #31B847
square
#315FB8 #B831A2 #B88A31 #31B847
split-complementary
#315FB8 #B84731 #A2B831
monochromatic
#172D57 #244688 #315FB8 #557FD2 #85A3DE

Accessibility & contrast

On white

6.07
#315FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#315FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FB8
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FB8#FFFFFF#000000##FFFFFF
##315FB81.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E69BB
Deuteranopia (green-blind)
#025DB6
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315fb8;
/* rgb */ color: rgb(49, 95, 184);
/* oklch */ color: oklch(50.2% 0.150 262.0);
Tailwind
colors: {
  custom: {
    50: '#7b8bce',
    500: '#315fb8',
    950: '#000000',
  },
}
SCSS
$custom: #315fb8;
$custom-light: #7b8bce;
$custom-dark: #000000;
JSON
{
  "hex": "#315fb8",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 219.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50243,
    "c": 0.14977,
    "h": 262
  },
  "luminance": 0.12298
}

Semantic roles & 50–950 ramp

primary
#315FB8
secondary
#C8AE7D
accent
#AD47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #315FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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