#315EA7#315EA7

#315EA7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.9% C 0.127 H 259.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#315EA7
RGBrgb(49, 94, 167)
HSLhsl(217, 55%, 42%)
HSVhsv(217, 71%, 65%)
CMYKcmyk(70.7%, 43.7%, 0%, 34.5%)
CIE-LABlab(40.32, 9.73, -43.85)
CIE-LCHlch(40.32, 44.91, 282.52°)
OKLaboklab(48.85% -0.0229 -0.1253)
OKLCHoklch(48.85% 0.127 259.6)
XYZxyz(12.2419, 11.4471, 38.1161)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EA7 #A77A31
analogous
#3199A7 #315EA7 #3F31A7
triadic
#315EA7 #A7315E #5EA731
tetradic
#315EA7 #A73199 #A77A31 #31A73F
square
#315EA7 #A73199 #A77A31 #31A73F
split-complementary
#315EA7 #A73F31 #99A731
monochromatic
#152948 #234378 #315EA7 #4B7CCA #7A9ED8

Accessibility & contrast

On white

6.38
#315EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#315EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EA7
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EA7#FFFFFF#000000##FFFFFF
##315EA71.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65AA
Deuteranopia (green-blind)
#265AA6
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315ea7;
/* rgb */ color: rgb(49, 94, 167);
/* oklch */ color: oklch(48.9% 0.127 259.6);
Tailwind
colors: {
  custom: {
    50: '#778bc1',
    500: '#315ea7',
    950: '#000000',
  },
}
SCSS
$custom: #315ea7;
$custom-light: #778bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#315ea7",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 217.119,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48851,
    "c": 0.1274,
    "h": 259.6
  },
  "luminance": 0.11448
}

Semantic roles & 50–950 ramp

primary
#315EA7
secondary
#C1A373
accent
#A54ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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