#315795#315795

#315795 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.1% C 0.110 H 259.7°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#315795
RGBrgb(49, 87, 149)
HSLhsl(217, 51%, 39%)
HSVhsv(217, 67%, 58%)
CMYKcmyk(67.1%, 41.6%, 0%, 41.6%)
CIE-LABlab(37.19, 7.56, -38.09)
CIE-LCHlch(37.19, 38.83, 281.23°)
OKLaboklab(46.08% -0.0197 -0.1085)
OKLCHoklch(46.08% 0.11 259.7)
XYZxyz(10.0977, 9.6383, 29.7562)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315795 #956F31
analogous
#318995 #315795 #3D3195
triadic
#315795 #953157 #579531
tetradic
#315795 #953189 #956F31 #31953D
square
#315795 #953189 #956F31 #31953D
split-complementary
#315795 #953D31 #899531
monochromatic
#132139 #223C67 #315795 #4272C1 #7095D0

Accessibility & contrast

On white

7.17
#315795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #315795
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315795#FFFFFF#000000##FFFFFF
##3157951.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5D97
Deuteranopia (green-blind)
#2C5394
Tritanopia (blue-blind)
#00656E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #315795;
/* rgb */ color: rgb(49, 87, 149);
/* oklch */ color: oklch(46.1% 0.110 259.7);
Tailwind
colors: {
  custom: {
    50: '#7486b4',
    500: '#315795',
    950: '#000000',
  },
}
SCSS
$custom: #315795;
$custom-light: #7486b4;
$custom-dark: #000000;
JSON
{
  "hex": "#315795",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 149
  },
  "hsl": {
    "h": 217.2,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46075,
    "c": 0.1103,
    "h": 259.7
  },
  "luminance": 0.09639
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315795

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

Preview Lab → · Contrast checker → · Palette generator →

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