#315EA5#315EA5

#315EA5 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.7% C 0.125 H 259.2°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#315EA5
RGBrgb(49, 94, 165)
HSLhsl(217, 54%, 42%)
HSVhsv(217, 70%, 65%)
CMYKcmyk(70.3%, 43%, 0%, 35.3%)
CIE-LABlab(40.20, 8.99, -42.85)
CIE-LCHlch(40.20, 43.78, 281.84°)
OKLaboklab(48.72% -0.0233 -0.1224)
OKLCHoklch(48.72% 0.125 259.2)
XYZxyz(12.0584, 11.3737, 37.1499)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EA5 #A57831
analogous
#3198A5 #315EA5 #3E31A5
triadic
#315EA5 #A5315E #5EA531
tetradic
#315EA5 #A53198 #A57831 #31A53E
square
#315EA5 #A53198 #A57831 #31A53E
split-complementary
#315EA5 #A53E31 #98A531
monochromatic
#152847 #234376 #315EA5 #4A7BC9 #799ED7

Accessibility & contrast

On white

6.41
#315EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#315EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EA5
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EA5#FFFFFF#000000##FFFFFF
##315EA51.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C65A8
Deuteranopia (green-blind)
#295AA4
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315ea5;
/* rgb */ color: rgb(49, 94, 165);
/* oklch */ color: oklch(48.7% 0.125 259.2);
Tailwind
colors: {
  custom: {
    50: '#778bc0',
    500: '#315ea5',
    950: '#000000',
  },
}
SCSS
$custom: #315ea5;
$custom-light: #778bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#315ea5",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 165
  },
  "hsl": {
    "h": 216.724,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48719,
    "c": 0.12461,
    "h": 259.2
  },
  "luminance": 0.11375
}

Semantic roles & 50–950 ramp

primary
#315EA5
secondary
#C0A272
accent
#A44ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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