#315DBB#315DBB

#315DBB is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.156 H 263.1°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#315DBB
RGBrgb(49, 93, 187)
HSLhsl(221, 58%, 46%)
HSVhsv(221, 74%, 73%)
CMYKcmyk(73.8%, 50.3%, 0%, 26.7%)
CIE-LABlab(41.32, 17.90, -54.00)
CIE-LCHlch(41.32, 56.89, 288.34°)
OKLaboklab(50.03% -0.0188 -0.1552)
OKLCHoklch(50.03% 0.156 263.1)
XYZxyz(14.1474, 12.0680, 48.5878)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DBB #BB8F31
analogous
#31A2BB #315DBB #4A31BB
triadic
#315DBB #BB315D #5DBB31
tetradic
#315DBB #BB31A2 #BB8F31 #31BB4A
square
#315DBB #BB31A2 #BB8F31 #31BB4A
split-complementary
#315DBB #BB4A31 #A2BB31
monochromatic
#182D5A #24458B #315DBB #567ED3 #87A3E0

Accessibility & contrast

On white

6.15
#315DBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#315DBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DBB
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DBB#FFFFFF#000000##FFFFFF
##315DBB1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2568BE
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315dbb;
/* rgb */ color: rgb(49, 93, 187);
/* oklch */ color: oklch(50.0% 0.156 263.1);
Tailwind
colors: {
  custom: {
    50: '#7c8ad0',
    500: '#315dbb',
    950: '#000000',
  },
}
SCSS
$custom: #315dbb;
$custom-light: #7c8ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#315dbb",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 187
  },
  "hsl": {
    "h": 220.87,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50032,
    "c": 0.15634,
    "h": 263.1
  },
  "luminance": 0.1207
}

Semantic roles & 50–950 ramp

primary
#315DBB
secondary
#C9B17F
accent
#B046E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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