#315EB6#315EB6

#315EB6 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.9% C 0.148 H 262.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#315EB6
RGBrgb(49, 94, 182)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(73.1%, 48.4%, 0%, 28.6%)
CIE-LABlab(41.27, 15.37, -51.16)
CIE-LCHlch(41.27, 53.42, 286.72°)
OKLaboklab(49.88% -0.0203 -0.1468)
OKLCHoklch(49.88% 0.148 262.1)
XYZxyz(13.7098, 12.0343, 45.8472)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EB6 #B68931
analogous
#31A1B6 #315EB6 #4631B6
triadic
#315EB6 #B6315E #5EB631
tetradic
#315EB6 #B631A1 #B68931 #31B646
square
#315EB6 #B631A1 #B68931 #31B646
split-complementary
#315EB6 #B64631 #A1B631
monochromatic
#172C56 #244586 #315EB6 #537ED1 #84A2DE

Accessibility & contrast

On white

6.16
#315EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#315EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EB6
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EB6#FFFFFF#000000##FFFFFF
##315EB61.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D68B9
Deuteranopia (green-blind)
#035CB4
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315eb6;
/* rgb */ color: rgb(49, 94, 182);
/* oklch */ color: oklch(49.9% 0.148 262.1);
Tailwind
colors: {
  custom: {
    50: '#7b8bcc',
    500: '#315eb6',
    950: '#000000',
  },
}
SCSS
$custom: #315eb6;
$custom-light: #7b8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#315eb6",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 182
  },
  "hsl": {
    "h": 219.699,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49884,
    "c": 0.14824,
    "h": 262.1
  },
  "luminance": 0.12036
}

Semantic roles & 50–950 ramp

primary
#315EB6
secondary
#C7AE7C
accent
#AD47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #315EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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