#315698#315698

#315698 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.0% C 0.116 H 261.0°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#315698
RGBrgb(49, 86, 152)
HSLhsl(218, 51%, 39%)
HSVhsv(218, 68%, 60%)
CMYKcmyk(67.8%, 43.4%, 0%, 40.4%)
CIE-LABlab(37.07, 9.33, -40.09)
CIE-LCHlch(37.07, 41.16, 283.10°)
OKLaboklab(46.04% -0.018 -0.1144)
OKLCHoklch(46.04% 0.116 261)
XYZxyz(10.2599, 9.5745, 31.0070)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315698 #987331
analogous
#318A98 #315698 #403198
triadic
#315698 #983156 #569831
tetradic
#315698 #98318A #987331 #319840
square
#315698 #98318A #987331 #319840
split-complementary
#315698 #984031 #8A9831
monochromatic
#13223B #223C6A #315698 #4471C3 #7294D2

Accessibility & contrast

On white

7.20
#315698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#315698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315698
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315698#FFFFFF#000000##FFFFFF
##3156981.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375C9B
Deuteranopia (green-blind)
#265397
Tritanopia (blue-blind)
#00656F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #315698;
/* rgb */ color: rgb(49, 86, 152);
/* oklch */ color: oklch(46.0% 0.116 261.0);
Tailwind
colors: {
  custom: {
    50: '#7585b7',
    500: '#315698',
    950: '#000000',
  },
}
SCSS
$custom: #315698;
$custom-light: #7585b7;
$custom-dark: #000000;
JSON
{
  "hex": "#315698",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 152
  },
  "hsl": {
    "h": 218.447,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46042,
    "c": 0.11581,
    "h": 261
  },
  "luminance": 0.09576
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315698

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

Preview Lab → · Contrast checker → · Palette generator →

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