#315BC4#315BC4

#315BC4 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.3% C 0.171 H 264.5°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#315BC4
RGBrgb(49, 91, 196)
HSLhsl(223, 60%, 48%)
HSVhsv(223, 75%, 77%)
CMYKcmyk(75%, 53.6%, 0%, 23.1%)
CIE-LABlab(41.40, 22.58, -59.11)
CIE-LCHlch(41.40, 63.27, 290.90°)
OKLaboklab(50.29% -0.0163 -0.1703)
OKLCHoklch(50.29% 0.171 264.5)
XYZxyz(14.9680, 12.1190, 53.7642)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BC4 #C49A31
analogous
#31A4C4 #315BC4 #5031C4
triadic
#315BC4 #C4315B #5BC431
tetradic
#315BC4 #C431A4 #C49A31 #31C450
square
#315BC4 #C431A4 #C49A31 #31C450
split-complementary
#315BC4 #C45031 #A4C431
monochromatic
#192E62 #254493 #315BC4 #5C7FD6 #8DA5E2

Accessibility & contrast

On white

6.13
#315BC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#315BC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BC4
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BC4#FFFFFF#000000##FFFFFF
##315BC41.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0669C8
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315bc4;
/* rgb */ color: rgb(49, 91, 196);
/* oklch */ color: oklch(50.3% 0.171 264.5);
Tailwind
colors: {
  custom: {
    50: '#7e88d7',
    500: '#315bc4',
    950: '#000000',
  },
}
SCSS
$custom: #315bc4;
$custom-light: #7e88d7;
$custom-dark: #000000;
JSON
{
  "hex": "#315bc4",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 196
  },
  "hsl": {
    "h": 222.857,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50293,
    "c": 0.17104,
    "h": 264.5
  },
  "luminance": 0.12121
}

Semantic roles & 50–950 ramp

primary
#315BC4
secondary
#CDB884
accent
#B645E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #315BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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