#315B97#315B97

#315B97 is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.1% C 0.108 H 257.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#315B97
RGBrgb(49, 91, 151)
HSLhsl(215, 51%, 39%)
HSVhsv(215, 68%, 59%)
CMYKcmyk(67.5%, 39.7%, 0%, 40.8%)
CIE-LABlab(38.50, 5.71, -37.21)
CIE-LCHlch(38.50, 37.65, 278.73°)
OKLaboklab(47.13% -0.0234 -0.1059)
OKLCHoklch(47.13% 0.108 257.5)
XYZxyz(10.5916, 10.3685, 30.7153)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315B97 #976D31
analogous
#318E97 #315B97 #3A3197
triadic
#315B97 #97315B #5B9731
tetradic
#315B97 #97318E #976D31 #31973A
square
#315B97 #97318E #976D31 #31973A
split-complementary
#315B97 #973A31 #8E9731
monochromatic
#13233B #223F69 #315B97 #4377C2 #7199D1

Accessibility & contrast

On white

6.83
#315B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#315B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315B97
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315B97#FFFFFF#000000##FFFFFF
##315B971.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406099
Deuteranopia (green-blind)
#315696
Tritanopia (blue-blind)
#006971
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #315b97;
/* rgb */ color: rgb(49, 91, 151);
/* oklch */ color: oklch(47.1% 0.108 257.5);
Tailwind
colors: {
  custom: {
    50: '#7489b6',
    500: '#315b97',
    950: '#000000',
  },
}
SCSS
$custom: #315b97;
$custom-light: #7489b6;
$custom-dark: #000000;
JSON
{
  "hex": "#315b97",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 151
  },
  "hsl": {
    "h": 215.294,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.47129,
    "c": 0.10845,
    "h": 257.5
  },
  "luminance": 0.1037
}

Semantic roles & 50–950 ramp

primary
#315B97
secondary
#B9996B
accent
#A04DDA
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #315B97

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

Preview Lab → · Contrast checker → · Palette generator →

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