#315EB4#315EB4

#315EB4 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.7% C 0.145 H 261.8°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#315EB4
RGBrgb(49, 94, 180)
HSLhsl(219, 57%, 45%)
HSVhsv(219, 73%, 71%)
CMYKcmyk(72.8%, 47.8%, 0%, 29.4%)
CIE-LABlab(41.14, 14.61, -50.20)
CIE-LCHlch(41.14, 52.28, 286.23°)
OKLaboklab(49.74% -0.0207 -0.144)
OKLCHoklch(49.74% 0.145 261.8)
XYZxyz(13.5046, 11.9522, 44.7665)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EB4 #B48731
analogous
#31A0B4 #315EB4 #4531B4
triadic
#315EB4 #B4315E #5EB431
tetradic
#315EB4 #B431A0 #B48731 #31B445
square
#315EB4 #B431A0 #B48731 #31B445
split-complementary
#315EB4 #B44531 #A0B431
monochromatic
#172C54 #244584 #315EB4 #527DD0 #82A2DD

Accessibility & contrast

On white

6.19
#315EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #315EB4
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EB4#FFFFFF#000000##FFFFFF
##315EB41.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3067B7
Deuteranopia (green-blind)
#0C5BB2
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315eb4;
/* rgb */ color: rgb(49, 94, 180);
/* oklch */ color: oklch(49.7% 0.145 261.8);
Tailwind
colors: {
  custom: {
    50: '#7a8bcb',
    500: '#315eb4',
    950: '#000000',
  },
}
SCSS
$custom: #315eb4;
$custom-light: #7a8bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#315eb4",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 180
  },
  "hsl": {
    "h": 219.389,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49743,
    "c": 0.14547,
    "h": 261.8
  },
  "luminance": 0.11954
}

Semantic roles & 50–950 ramp

primary
#315EB4
secondary
#C6AC7B
accent
#AC47E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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