#315DB8#315DB8

#315DB8 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.8% C 0.152 H 262.7°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#315DB8
RGBrgb(49, 93, 184)
HSLhsl(220, 58%, 46%)
HSVhsv(220, 73%, 72%)
CMYKcmyk(73.4%, 49.5%, 0%, 27.8%)
CIE-LABlab(41.12, 16.77, -52.57)
CIE-LCHlch(41.12, 55.18, 287.69°)
OKLaboklab(49.81% -0.0192 -0.151)
OKLCHoklch(49.81% 0.152 262.7)
XYZxyz(13.8296, 11.9409, 46.9141)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DB8 #B88C31
analogous
#31A1B8 #315DB8 #4831B8
triadic
#315DB8 #B8315D #5DB831
tetradic
#315DB8 #B831A1 #B88C31 #31B848
square
#315DB8 #B831A1 #B88C31 #31B848
split-complementary
#315DB8 #B84831 #A1B831
monochromatic
#172C57 #244588 #315DB8 #557DD2 #85A2DE

Accessibility & contrast

On white

6.20
#315DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#315DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DB8
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DB8#FFFFFF#000000##FFFFFF
##315DB81.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2968BB
Deuteranopia (green-blind)
#005BB6
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315db8;
/* rgb */ color: rgb(49, 93, 184);
/* oklch */ color: oklch(49.8% 0.152 262.7);
Tailwind
colors: {
  custom: {
    50: '#7b8ace',
    500: '#315db8',
    950: '#000000',
  },
}
SCSS
$custom: #315db8;
$custom-light: #7b8ace;
$custom-dark: #000000;
JSON
{
  "hex": "#315db8",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 184
  },
  "hsl": {
    "h": 220.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49813,
    "c": 0.15222,
    "h": 262.7
  },
  "luminance": 0.11942
}

Semantic roles & 50–950 ramp

primary
#315DB8
secondary
#C8AF7D
accent
#AF47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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