#315BD4#315BD4

#315BD4 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.6% C 0.192 H 265.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#315BD4
RGBrgb(49, 91, 212)
HSLhsl(225, 65%, 51%)
HSVhsv(225, 77%, 83%)
CMYKcmyk(76.9%, 57.1%, 0%, 16.9%)
CIE-LABlab(42.59, 28.54, -66.40)
CIE-LCHlch(42.59, 72.27, 293.26°)
OKLaboklab(51.56% -0.0152 -0.1917)
OKLCHoklch(51.56% 0.192 265.5)
XYZxyz(16.8872, 12.8867, 63.8720)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BD4 #D4AA31
analogous
#31ACD4 #315BD4 #5831D4
triadic
#315BD4 #D4315B #5BD431
tetradic
#315BD4 #D431AC #D4AA31 #31D458
square
#315BD4 #D431AC #D4AA31 #31D458
split-complementary
#315BD4 #D45831 #ACD431
monochromatic
#182F73 #2344A5 #315BD4 #6483DF #96ACE9

Accessibility & contrast

On white

5.87
#315BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#315BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BD4
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BD4#FFFFFF#000000##FFFFFF
##315BD41.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#005DD2
Tritanopia (blue-blind)
#00798E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #315bd4;
/* rgb */ color: rgb(49, 91, 212);
/* oklch */ color: oklch(51.6% 0.192 265.5);
Tailwind
colors: {
  custom: {
    50: '#8188e2',
    500: '#315bd4',
    950: '#000000',
  },
}
SCSS
$custom: #315bd4;
$custom-light: #8188e2;
$custom-dark: #000000;
JSON
{
  "hex": "#315bd4",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 212
  },
  "hsl": {
    "h": 224.54,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51562,
    "c": 0.19231,
    "h": 265.5
  },
  "luminance": 0.12889
}

Semantic roles & 50–950 ramp

primary
#315BD4
secondary
#D4C28C
accent
#BD3FE8
background
#F8F8FE
surface
#F0EFFC
border
#CBCAD5
text
#0C0B15
muted
#7D7C84

Preview Lab

Preview with #315BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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