#315796#315796

#315796 is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.1% C 0.112 H 260.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#315796
RGBrgb(49, 87, 150)
HSLhsl(217, 51%, 39%)
HSVhsv(217, 67%, 59%)
CMYKcmyk(67.3%, 42%, 0%, 41.2%)
CIE-LABlab(37.24, 7.93, -38.60)
CIE-LCHlch(37.24, 39.41, 281.61°)
OKLaboklab(46.14% -0.0195 -0.11)
OKLCHoklch(46.14% 0.112 260)
XYZxyz(10.1779, 9.6704, 30.1784)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315796 #967031
analogous
#318A96 #315796 #3E3196
triadic
#315796 #963157 #579631
tetradic
#315796 #96318A #967031 #31963E
square
#315796 #96318A #967031 #31963E
split-complementary
#315796 #963E31 #8A9631
monochromatic
#13213A #223C68 #315796 #4372C1 #7195D1

Accessibility & contrast

On white

7.16
#315796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#315796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315796
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315796#FFFFFF#000000##FFFFFF
##3157961.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5D98
Deuteranopia (green-blind)
#2B5395
Tritanopia (blue-blind)
#00656F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #315796;
/* rgb */ color: rgb(49, 87, 150);
/* oklch */ color: oklch(46.1% 0.112 260.0);
Tailwind
colors: {
  custom: {
    50: '#7486b5',
    500: '#315796',
    950: '#000000',
  },
}
SCSS
$custom: #315796;
$custom-light: #7486b5;
$custom-dark: #000000;
JSON
{
  "hex": "#315796",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 150
  },
  "hsl": {
    "h": 217.426,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46139,
    "c": 0.11173,
    "h": 260
  },
  "luminance": 0.09671
}

Semantic roles & 50–950 ramp

primary
#315796
secondary
#B89B6A
accent
#A54EDA
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #315796

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

Preview Lab → · Contrast checker → · Palette generator →

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