#315896#315896

#315896 is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.4% C 0.111 H 259.3°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#315896
RGBrgb(49, 88, 150)
HSLhsl(217, 51%, 39%)
HSVhsv(217, 67%, 59%)
CMYKcmyk(67.3%, 41.3%, 0%, 41.2%)
CIE-LABlab(37.54, 7.28, -38.13)
CIE-LCHlch(37.54, 38.81, 280.81°)
OKLaboklab(46.37% -0.0205 -0.1086)
OKLCHoklch(46.37% 0.111 259.3)
XYZxyz(10.2594, 9.8334, 30.2056)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315896 #966F31
analogous
#318B96 #315896 #3D3196
triadic
#315896 #963158 #589631
tetradic
#315896 #96318B #966F31 #31963D
square
#315896 #96318B #966F31 #31963D
split-complementary
#315896 #963D31 #8B9631
monochromatic
#13223A #223D68 #315896 #4374C1 #7196D1

Accessibility & contrast

On white

7.08
#315896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #315896
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315896#FFFFFF#000000##FFFFFF
##3158961.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5D98
Deuteranopia (green-blind)
#2D5495
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #315896;
/* rgb */ color: rgb(49, 88, 150);
/* oklch */ color: oklch(46.4% 0.111 259.3);
Tailwind
colors: {
  custom: {
    50: '#7486b5',
    500: '#315896',
    950: '#000000',
  },
}
SCSS
$custom: #315896;
$custom-light: #7486b5;
$custom-dark: #000000;
JSON
{
  "hex": "#315896",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 150
  },
  "hsl": {
    "h": 216.832,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4637,
    "c": 0.11054,
    "h": 259.3
  },
  "luminance": 0.09834
}

Semantic roles & 50–950 ramp

primary
#315896
secondary
#B89A6A
accent
#A44EDA
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #315896

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

Preview Lab → · Contrast checker → · Palette generator →

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