#315DA7#315DA7

#315DA7 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.6% C 0.129 H 260.2°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#315DA7
RGBrgb(49, 93, 167)
HSLhsl(218, 55%, 42%)
HSVhsv(218, 71%, 65%)
CMYKcmyk(70.7%, 44.3%, 0%, 34.5%)
CIE-LABlab(40.03, 10.38, -44.31)
CIE-LCHlch(40.03, 45.51, 283.18°)
OKLaboklab(48.63% -0.022 -0.1267)
OKLCHoklch(48.63% 0.129 260.2)
XYZxyz(12.1535, 11.2704, 38.0866)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DA7 #A77B31
analogous
#3198A7 #315DA7 #4031A7
triadic
#315DA7 #A7315D #5DA731
tetradic
#315DA7 #A73198 #A77B31 #31A740
square
#315DA7 #A73198 #A77B31 #31A740
split-complementary
#315DA7 #A74031 #98A731
monochromatic
#152848 #234378 #315DA7 #4B7ACA #7A9DD8

Accessibility & contrast

On white

6.45
#315DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#315DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DA7
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DA7#FFFFFF#000000##FFFFFF
##315DA71.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3964AA
Deuteranopia (green-blind)
#2459A5
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315da7;
/* rgb */ color: rgb(49, 93, 167);
/* oklch */ color: oklch(48.6% 0.129 260.2);
Tailwind
colors: {
  custom: {
    50: '#778ac1',
    500: '#315da7',
    950: '#000000',
  },
}
SCSS
$custom: #315da7;
$custom-light: #778ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#315da7",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 167
  },
  "hsl": {
    "h": 217.627,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48626,
    "c": 0.12859,
    "h": 260.2
  },
  "luminance": 0.11272
}

Semantic roles & 50–950 ramp

primary
#315DA7
secondary
#C1A473
accent
#A74ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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