#315798#315798

#315798 is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.3% C 0.115 H 260.4°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#315798
RGBrgb(49, 87, 152)
HSLhsl(218, 51%, 39%)
HSVhsv(218, 68%, 60%)
CMYKcmyk(67.8%, 42.8%, 0%, 40.4%)
CIE-LABlab(37.36, 8.68, -39.61)
CIE-LCHlch(37.36, 40.55, 282.35°)
OKLaboklab(46.27% -0.019 -0.113)
OKLCHoklch(46.27% 0.115 260.4)
XYZxyz(10.3403, 9.7353, 31.0338)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315798 #987231
analogous
#318B98 #315798 #3F3198
triadic
#315798 #983157 #579831
tetradic
#315798 #98318B #987231 #31983F
square
#315798 #98318B #987231 #31983F
split-complementary
#315798 #983F31 #8B9831
monochromatic
#13223B #223D6A #315798 #4472C3 #7295D2

Accessibility & contrast

On white

7.13
#315798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#315798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315798
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315798#FFFFFF#000000##FFFFFF
##3157981.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395D9B
Deuteranopia (green-blind)
#295497
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #315798;
/* rgb */ color: rgb(49, 87, 152);
/* oklch */ color: oklch(46.3% 0.115 260.4);
Tailwind
colors: {
  custom: {
    50: '#7585b7',
    500: '#315798',
    950: '#000000',
  },
}
SCSS
$custom: #315798;
$custom-light: #7585b7;
$custom-dark: #000000;
JSON
{
  "hex": "#315798",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 152
  },
  "hsl": {
    "h": 217.864,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4627,
    "c": 0.11459,
    "h": 260.4
  },
  "luminance": 0.09736
}

Semantic roles & 50–950 ramp

primary
#315798
secondary
#B99D6B
accent
#A64DDB
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #315798

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

Preview Lab → · Contrast checker → · Palette generator →

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