#315EB2#315EB2

#315EB2 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.143 H 261.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#315EB2
RGBrgb(49, 94, 178)
HSLhsl(219, 57%, 45%)
HSVhsv(219, 72%, 70%)
CMYKcmyk(72.5%, 47.2%, 0%, 30.2%)
CIE-LABlab(41.01, 13.86, -49.23)
CIE-LCHlch(41.01, 51.15, 285.72°)
OKLaboklab(49.6% -0.021 -0.1412)
OKLCHoklch(49.6% 0.143 261.6)
XYZxyz(13.3023, 11.8713, 43.7012)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EB2 #B28531
analogous
#319FB2 #315EB2 #4531B2
triadic
#315EB2 #B2315E #5EB231
tetradic
#315EB2 #B2319F #B28531 #31B245
square
#315EB2 #B2319F #B28531 #31B245
split-complementary
#315EB2 #B24531 #9FB231
monochromatic
#172B52 #244582 #315EB2 #517DCF #81A1DC

Accessibility & contrast

On white

6.22
#315EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#315EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EB2
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EB2#FFFFFF#000000##FFFFFF
##315EB21.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3167B5
Deuteranopia (green-blind)
#125BB0
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315eb2;
/* rgb */ color: rgb(49, 94, 178);
/* oklch */ color: oklch(49.6% 0.143 261.6);
Tailwind
colors: {
  custom: {
    50: '#7a8bc9',
    500: '#315eb2',
    950: '#000000',
  },
}
SCSS
$custom: #315eb2;
$custom-light: #7a8bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#315eb2",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 178
  },
  "hsl": {
    "h": 219.07,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49602,
    "c": 0.14271,
    "h": 261.6
  },
  "luminance": 0.11873
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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