#315897#315897

#315897 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.4% C 0.112 H 259.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#315897
RGBrgb(49, 88, 151)
HSLhsl(217, 51%, 39%)
HSVhsv(217, 68%, 59%)
CMYKcmyk(67.5%, 41.7%, 0%, 40.8%)
CIE-LABlab(37.60, 7.65, -38.63)
CIE-LCHlch(37.60, 39.38, 281.21°)
OKLaboklab(46.43% -0.0203 -0.1101)
OKLCHoklch(46.43% 0.112 259.6)
XYZxyz(10.3403, 9.8658, 30.6315)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315897 #977031
analogous
#318B97 #315897 #3D3197
triadic
#315897 #973158 #589731
tetradic
#315897 #97318B #977031 #31973D
square
#315897 #97318B #977031 #31973D
split-complementary
#315897 #973D31 #8B9731
monochromatic
#13223B #223D69 #315897 #4374C2 #7196D1

Accessibility & contrast

On white

7.06
#315897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#315897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315897
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315897#FFFFFF#000000##FFFFFF
##3158971.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5E99
Deuteranopia (green-blind)
#2C5496
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #315897;
/* rgb */ color: rgb(49, 88, 151);
/* oklch */ color: oklch(46.4% 0.112 259.6);
Tailwind
colors: {
  custom: {
    50: '#7486b6',
    500: '#315897',
    950: '#000000',
  },
}
SCSS
$custom: #315897;
$custom-light: #7486b6;
$custom-dark: #000000;
JSON
{
  "hex": "#315897",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 151
  },
  "hsl": {
    "h": 217.059,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46434,
    "c": 0.11197,
    "h": 259.6
  },
  "luminance": 0.09867
}

Semantic roles & 50–950 ramp

primary
#315897
secondary
#B99B6B
accent
#A54DDA
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #315897

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

Preview Lab → · Contrast checker → · Palette generator →

#315897 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva