#315CB8#315CB8

#315CB8 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.6% C 0.153 H 263.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#315CB8
RGBrgb(49, 92, 184)
HSLhsl(221, 58%, 46%)
HSVhsv(221, 73%, 72%)
CMYKcmyk(73.4%, 50%, 0%, 27.8%)
CIE-LABlab(40.84, 17.42, -53.02)
CIE-LCHlch(40.84, 55.81, 288.19°)
OKLaboklab(49.6% -0.0184 -0.1524)
OKLCHoklch(49.6% 0.153 263.1)
XYZxyz(13.7424, 11.7665, 46.8850)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CB8 #B88D31
analogous
#319FB8 #315CB8 #4931B8
triadic
#315CB8 #B8315C #5CB831
tetradic
#315CB8 #B8319F #B88D31 #31B849
square
#315CB8 #B8319F #B88D31 #31B849
split-complementary
#315CB8 #B84931 #9FB831
monochromatic
#172C57 #244488 #315CB8 #557CD2 #85A1DE

Accessibility & contrast

On white

6.26
#315CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#315CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CB8
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CB8#FFFFFF#000000##FFFFFF
##315CB81.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2667BB
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315cb8;
/* rgb */ color: rgb(49, 92, 184);
/* oklch */ color: oklch(49.6% 0.153 263.1);
Tailwind
colors: {
  custom: {
    50: '#7b89ce',
    500: '#315cb8',
    950: '#000000',
  },
}
SCSS
$custom: #315cb8;
$custom-light: #7b89ce;
$custom-dark: #000000;
JSON
{
  "hex": "#315cb8",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 184
  },
  "hsl": {
    "h": 220.889,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.496,
    "c": 0.15345,
    "h": 263.1
  },
  "luminance": 0.11768
}

Semantic roles & 50–950 ramp

primary
#315CB8
secondary
#C8B07D
accent
#B047E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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