#315DBE#315DBE

#315DBE is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.3% C 0.160 H 263.4°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#315DBE
RGBrgb(49, 93, 190)
HSLhsl(221, 59%, 47%)
HSVhsv(221, 74%, 75%)
CMYKcmyk(74.2%, 51.1%, 0%, 25.5%)
CIE-LABlab(41.53, 19.02, -55.42)
CIE-LCHlch(41.53, 58.59, 288.95°)
OKLaboklab(50.25% -0.0185 -0.1594)
OKLCHoklch(50.25% 0.16 263.4)
XYZxyz(14.4719, 12.1978, 50.2969)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DBE #BE9231
analogous
#31A4BE #315DBE #4C31BE
triadic
#315DBE #BE315D #5DBE31
tetradic
#315DBE #BE31A4 #BE9231 #31BE4C
square
#315DBE #BE31A4 #BE9231 #31BE4C
split-complementary
#315DBE #BE4C31 #A4BE31
monochromatic
#182D5D #24458D #315DBE #587FD4 #89A4E1

Accessibility & contrast

On white

6.11
#315DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#315DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DBE
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DBE#FFFFFF#000000##FFFFFF
##315DBE1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2069C1
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#007484
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315dbe;
/* rgb */ color: rgb(49, 93, 190);
/* oklch */ color: oklch(50.3% 0.160 263.4);
Tailwind
colors: {
  custom: {
    50: '#7c8ad2',
    500: '#315dbe',
    950: '#000000',
  },
}
SCSS
$custom: #315dbe;
$custom-light: #7c8ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#315dbe",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 190
  },
  "hsl": {
    "h": 221.277,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50253,
    "c": 0.16045,
    "h": 263.4
  },
  "luminance": 0.12199
}

Semantic roles & 50–950 ramp

primary
#315DBE
secondary
#CAB380
accent
#B146E2
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #315DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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