#315895#315895

#315895 is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.3% C 0.109 H 259.0°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#315895
RGBrgb(49, 88, 149)
HSLhsl(217, 51%, 39%)
HSVhsv(217, 67%, 58%)
CMYKcmyk(67.1%, 40.9%, 0%, 41.6%)
CIE-LABlab(37.48, 6.91, -37.62)
CIE-LCHlch(37.48, 38.24, 280.41°)
OKLaboklab(46.31% -0.0208 -0.1071)
OKLCHoklch(46.31% 0.109 259)
XYZxyz(10.1792, 9.8013, 29.7833)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315895 #956E31
analogous
#318A95 #315895 #3C3195
triadic
#315895 #953158 #589531
tetradic
#315895 #95318A #956E31 #31953C
square
#315895 #95318A #956E31 #31953C
split-complementary
#315895 #953C31 #8A9531
monochromatic
#132239 #223D67 #315895 #4274C1 #7096D0

Accessibility & contrast

On white

7.09
#315895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#315895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315895
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315895#FFFFFF#000000##FFFFFF
##3158951.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #315895;
/* rgb */ color: rgb(49, 88, 149);
/* oklch */ color: oklch(46.3% 0.109 259.0);
Tailwind
colors: {
  custom: {
    50: '#7486b4',
    500: '#315895',
    950: '#000000',
  },
}
SCSS
$custom: #315895;
$custom-light: #7486b4;
$custom-dark: #000000;
JSON
{
  "hex": "#315895",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 149
  },
  "hsl": {
    "h": 216.6,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46306,
    "c": 0.10911,
    "h": 259
  },
  "luminance": 0.09802
}

Semantic roles & 50–950 ramp

primary
#315895
secondary
#B8996A
accent
#A34EDA
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #315895

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

Preview Lab → · Contrast checker → · Palette generator →

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