#315DB7#315DB7

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

Color values

HEX#315DB7
RGBrgb(49, 93, 183)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 73%, 72%)
CMYKcmyk(73.2%, 49.2%, 0%, 28.2%)
CIE-LABlab(41.06, 16.39, -52.09)
CIE-LCHlch(41.06, 54.61, 287.47°)
OKLaboklab(49.74% -0.0193 -0.1496)
OKLCHoklch(49.74% 0.151 262.6)
XYZxyz(13.7252, 11.8991, 46.3640)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DB7 #B78B31
analogous
#31A0B7 #315DB7 #4831B7
triadic
#315DB7 #B7315D #5DB731
tetradic
#315DB7 #B731A0 #B78B31 #31B748
square
#315DB7 #B731A0 #B78B31 #31B748
split-complementary
#315DB7 #B74831 #A0B731
monochromatic
#172C56 #244487 #315DB7 #547DD1 #84A2DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315DB7#FFFFFF#000000##FFFFFF
##315DB71.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)
#2A67BA
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315db7;
/* rgb */ color: rgb(49, 93, 183);
/* oklch */ color: oklch(49.7% 0.151 262.6);
Tailwind
colors: {
  custom: {
    50: '#7b8acd',
    500: '#315db7',
    950: '#000000',
  },
}
SCSS
$custom: #315db7;
$custom-light: #7b8acd;
$custom-dark: #000000;
JSON
{
  "hex": "#315db7",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 183
  },
  "hsl": {
    "h": 220.299,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49741,
    "c": 0.15085,
    "h": 262.6
  },
  "luminance": 0.11901
}

Semantic roles & 50–950 ramp

primary
#315DB7
secondary
#C8AF7C
accent
#AE47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #315DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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