#315997#315997

#315997 is a mid, moderate blue. Relative luminance 0.100; OKLCH L 46.7% C 0.111 H 258.9°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#315997
RGBrgb(49, 89, 151)
HSLhsl(216, 51%, 39%)
HSVhsv(216, 68%, 59%)
CMYKcmyk(67.5%, 41.1%, 0%, 40.8%)
CIE-LABlab(37.90, 7.00, -38.16)
CIE-LCHlch(37.90, 38.80, 280.40°)
OKLaboklab(46.67% -0.0213 -0.1087)
OKLCHoklch(46.67% 0.111 258.9)
XYZxyz(10.4229, 10.0311, 30.6591)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315997 #976F31
analogous
#318C97 #315997 #3C3197
triadic
#315997 #973159 #599731
tetradic
#315997 #97318C #976F31 #31973C
square
#315997 #97318C #976F31 #31973C
split-complementary
#315997 #973C31 #8C9731
monochromatic
#13233B #223E69 #315997 #4375C2 #7197D1

Accessibility & contrast

On white

6.99
#315997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#315997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315997
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315997#FFFFFF#000000##FFFFFF
##3159971.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5E99
Deuteranopia (green-blind)
#2D5596
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #315997;
/* rgb */ color: rgb(49, 89, 151);
/* oklch */ color: oklch(46.7% 0.111 258.9);
Tailwind
colors: {
  custom: {
    50: '#7487b6',
    500: '#315997',
    950: '#000000',
  },
}
SCSS
$custom: #315997;
$custom-light: #7487b6;
$custom-dark: #000000;
JSON
{
  "hex": "#315997",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 151
  },
  "hsl": {
    "h": 216.471,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46665,
    "c": 0.11079,
    "h": 258.9
  },
  "luminance": 0.10032
}

Semantic roles & 50–950 ramp

primary
#315997
secondary
#B99A6B
accent
#A34DDA
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #315997

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

Preview Lab → · Contrast checker → · Palette generator →

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