#315D9D#315D9D

#315D9D is a mid, moderate blue. Relative luminance 0.109; OKLCH L 48.0% C 0.115 H 257.9°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#315D9D
RGBrgb(49, 93, 157)
HSLhsl(216, 52%, 40%)
HSVhsv(216, 69%, 62%)
CMYKcmyk(68.8%, 40.8%, 0%, 38.4%)
CIE-LABlab(39.44, 6.65, -39.31)
CIE-LCHlch(39.44, 39.87, 279.60°)
OKLaboklab(47.97% -0.0241 -0.112)
OKLCHoklch(47.97% 0.115 257.9)
XYZxyz(11.2646, 10.9148, 33.4049)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315D9D #9D7131
analogous
#31939D #315D9D #3B319D
triadic
#315D9D #9D315D #5D9D31
tetradic
#315D9D #9D3193 #9D7131 #319D3B
square
#315D9D #9D3193 #9D7131 #319D3B
split-complementary
#315D9D #9D3B31 #939D31
monochromatic
#142640 #22416E #315D9D #467AC5 #759BD4

Accessibility & contrast

On white

6.60
#315D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#315D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315D9D
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315D9D#FFFFFF#000000##FFFFFF
##315D9D1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4062A0
Deuteranopia (green-blind)
#2F589C
Tritanopia (blue-blind)
#006C75
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #315d9d;
/* rgb */ color: rgb(49, 93, 157);
/* oklch */ color: oklch(48.0% 0.115 257.9);
Tailwind
colors: {
  custom: {
    50: '#758aba',
    500: '#315d9d',
    950: '#000000',
  },
}
SCSS
$custom: #315d9d;
$custom-light: #758aba;
$custom-dark: #000000;
JSON
{
  "hex": "#315d9d",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 157
  },
  "hsl": {
    "h": 215.556,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47972,
    "c": 0.11458,
    "h": 257.9
  },
  "luminance": 0.10916
}

Semantic roles & 50–950 ramp

primary
#315D9D
secondary
#BC9C6E
accent
#A14CDC
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #315D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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