#315EB3#315EB3

#315EB3 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.144 H 261.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#315EB3
RGBrgb(49, 94, 179)
HSLhsl(219, 57%, 45%)
HSVhsv(219, 73%, 70%)
CMYKcmyk(72.6%, 47.5%, 0%, 29.8%)
CIE-LABlab(41.08, 14.24, -49.72)
CIE-LCHlch(41.08, 51.72, 285.98°)
OKLaboklab(49.67% -0.0208 -0.1426)
OKLCHoklch(49.67% 0.144 261.7)
XYZxyz(13.4031, 11.9116, 44.2319)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EB3 #B38631
analogous
#319FB3 #315EB3 #4531B3
triadic
#315EB3 #B3315E #5EB331
tetradic
#315EB3 #B3319F #B38631 #31B345
square
#315EB3 #B3319F #B38631 #31B345
split-complementary
#315EB3 #B34531 #9FB331
monochromatic
#172C53 #244583 #315EB3 #527DD0 #82A1DD

Accessibility & contrast

On white

6.21
#315EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#315EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EB3
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EB3#FFFFFF#000000##FFFFFF
##315EB31.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3167B6
Deuteranopia (green-blind)
#0F5BB1
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315eb3;
/* rgb */ color: rgb(49, 94, 179);
/* oklch */ color: oklch(49.7% 0.144 261.7);
Tailwind
colors: {
  custom: {
    50: '#7a8bca',
    500: '#315eb3',
    950: '#000000',
  },
}
SCSS
$custom: #315eb3;
$custom-light: #7a8bca;
$custom-dark: #000000;
JSON
{
  "hex": "#315eb3",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 179
  },
  "hsl": {
    "h": 219.231,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49672,
    "c": 0.14409,
    "h": 261.7
  },
  "luminance": 0.11913
}

Semantic roles & 50–950 ramp

primary
#315EB3
secondary
#C6AC7A
accent
#AB48E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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