#315BA8#315BA8

#315BA8 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.2% C 0.132 H 261.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#315BA8
RGBrgb(49, 91, 168)
HSLhsl(219, 55%, 43%)
HSVhsv(219, 71%, 66%)
CMYKcmyk(70.8%, 45.8%, 0%, 34.1%)
CIE-LABlab(39.51, 12.05, -45.73)
CIE-LCHlch(39.51, 47.29, 284.77°)
OKLaboklab(48.25% -0.0199 -0.1309)
OKLCHoklch(48.25% 0.132 261.4)
XYZxyz(12.0731, 10.9610, 38.5176)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BA8 #A87E31
analogous
#3196A8 #315BA8 #4331A8
triadic
#315BA8 #A8315B #5BA831
tetradic
#315BA8 #A83196 #A87E31 #31A843
square
#315BA8 #A83196 #A87E31 #31A843
split-complementary
#315BA8 #A84331 #96A831
monochromatic
#152849 #234179 #315BA8 #4C78CB #7B9CD8

Accessibility & contrast

On white

6.58
#315BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#315BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BA8
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BA8#FFFFFF#000000##FFFFFF
##315BA81.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AB
Deuteranopia (green-blind)
#1D58A6
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #315ba8;
/* rgb */ color: rgb(49, 91, 168);
/* oklch */ color: oklch(48.2% 0.132 261.4);
Tailwind
colors: {
  custom: {
    50: '#7888c2',
    500: '#315ba8',
    950: '#000000',
  },
}
SCSS
$custom: #315ba8;
$custom-light: #7888c2;
$custom-dark: #000000;
JSON
{
  "hex": "#315ba8",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 168
  },
  "hsl": {
    "h": 218.824,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48247,
    "c": 0.13242,
    "h": 261.4
  },
  "luminance": 0.10962
}

Semantic roles & 50–950 ramp

primary
#315BA8
secondary
#C1A674
accent
#AA4ADE
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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