#315A9D#315A9D

#315A9D is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.3% C 0.118 H 259.7°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#315A9D
RGBrgb(49, 90, 157)
HSLhsl(217, 52%, 40%)
HSVhsv(217, 69%, 62%)
CMYKcmyk(68.8%, 42.7%, 0%, 38.4%)
CIE-LABlab(38.55, 8.59, -40.73)
CIE-LCHlch(38.55, 41.62, 281.91°)
OKLaboklab(47.28% -0.0211 -0.1162)
OKLCHoklch(47.28% 0.118 259.7)
XYZxyz(11.0064, 10.3985, 33.3188)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315A9D #9D7431
analogous
#31909D #315A9D #3E319D
triadic
#315A9D #9D315A #5A9D31
tetradic
#315A9D #9D3190 #9D7431 #319D3E
square
#315A9D #9D3190 #9D7431 #319D3E
split-complementary
#315A9D #9D3E31 #909D31
monochromatic
#142540 #223F6E #315A9D #4676C5 #7599D4

Accessibility & contrast

On white

6.82
#315A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#315A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315A9D
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315A9D#FFFFFF#000000##FFFFFF
##315A9D1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B60A0
Deuteranopia (green-blind)
#29569C
Tritanopia (blue-blind)
#006974
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #315a9d;
/* rgb */ color: rgb(49, 90, 157);
/* oklch */ color: oklch(47.3% 0.118 259.7);
Tailwind
colors: {
  custom: {
    50: '#7688ba',
    500: '#315a9d',
    950: '#000000',
  },
}
SCSS
$custom: #315a9d;
$custom-light: #7688ba;
$custom-dark: #000000;
JSON
{
  "hex": "#315a9d",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 157
  },
  "hsl": {
    "h": 217.222,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47284,
    "c": 0.11811,
    "h": 259.7
  },
  "luminance": 0.104
}

Semantic roles & 50–950 ramp

primary
#315A9D
secondary
#BC9E6E
accent
#A54CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #315A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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