#315EB7#315EB7

#315EB7 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.150 H 262.2°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#315EB7
RGBrgb(49, 94, 183)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 73%, 72%)
CMYKcmyk(73.2%, 48.6%, 0%, 28.2%)
CIE-LABlab(41.34, 15.74, -51.64)
CIE-LCHlch(41.34, 53.99, 286.95°)
OKLaboklab(49.96% -0.0202 -0.1482)
OKLCHoklch(49.96% 0.15 262.2)
XYZxyz(13.8135, 12.0758, 46.3934)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EB7 #B78A31
analogous
#31A1B7 #315EB7 #4731B7
triadic
#315EB7 #B7315E #5EB731
tetradic
#315EB7 #B731A1 #B78A31 #31B747
square
#315EB7 #B731A1 #B78A31 #31B747
split-complementary
#315EB7 #B74731 #A1B731
monochromatic
#172C56 #244587 #315EB7 #547ED1 #84A2DE

Accessibility & contrast

On white

6.15
#315EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #315EB7
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EB7#FFFFFF#000000##FFFFFF
##315EB71.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C68BA
Deuteranopia (green-blind)
#005CB5
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315eb7;
/* rgb */ color: rgb(49, 94, 183);
/* oklch */ color: oklch(50.0% 0.150 262.2);
Tailwind
colors: {
  custom: {
    50: '#7b8bcd',
    500: '#315eb7',
    950: '#000000',
  },
}
SCSS
$custom: #315eb7;
$custom-light: #7b8bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#315eb7",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 183
  },
  "hsl": {
    "h": 219.851,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49956,
    "c": 0.14962,
    "h": 262.2
  },
  "luminance": 0.12077
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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