#315995#315995

#315995 is a mid, moderate blue. Relative luminance 0.100; OKLCH L 46.5% C 0.108 H 258.3°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#315995
RGBrgb(49, 89, 149)
HSLhsl(216, 51%, 39%)
HSVhsv(216, 67%, 58%)
CMYKcmyk(67.1%, 40.3%, 0%, 41.6%)
CIE-LABlab(37.78, 6.26, -37.14)
CIE-LCHlch(37.78, 37.66, 279.57°)
OKLaboklab(46.54% -0.0218 -0.1057)
OKLCHoklch(46.54% 0.108 258.3)
XYZxyz(10.2619, 9.9666, 29.8109)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315995 #956D31
analogous
#318B95 #315995 #3B3195
triadic
#315995 #953159 #599531
tetradic
#315995 #95318B #956D31 #31953B
square
#315995 #95318B #956D31 #31953B
split-complementary
#315995 #953B31 #8B9531
monochromatic
#132239 #223D67 #315995 #4275C1 #7097D0

Accessibility & contrast

On white

7.01
#315995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#315995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315995
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315995#FFFFFF#000000##FFFFFF
##3159951.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #315995;
/* rgb */ color: rgb(49, 89, 149);
/* oklch */ color: oklch(46.5% 0.108 258.3);
Tailwind
colors: {
  custom: {
    50: '#7487b4',
    500: '#315995',
    950: '#000000',
  },
}
SCSS
$custom: #315995;
$custom-light: #7487b4;
$custom-dark: #000000;
JSON
{
  "hex": "#315995",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 149
  },
  "hsl": {
    "h": 216,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46538,
    "c": 0.10794,
    "h": 258.3
  },
  "luminance": 0.09968
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315995

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

Preview Lab → · Contrast checker → · Palette generator →

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