#315B8A#315B8A

#315B8A is a mid, moderate cyan. Relative luminance 0.100; OKLCH L 46.3% C 0.090 H 252.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#315B8A
RGBrgb(49, 91, 138)
HSLhsl(212, 48%, 37%)
HSVhsv(212, 64%, 54%)
CMYKcmyk(64.5%, 34.1%, 0%, 45.9%)
CIE-LABlab(37.79, 0.96, -30.48)
CIE-LCHlch(37.79, 30.49, 271.80°)
OKLaboklab(46.35% -0.0269 -0.0862)
OKLCHoklch(46.35% 0.09 252.7)
XYZxyz(9.5935, 9.9692, 25.4585)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315B8A #8A6031
analogous
#31888A #315B8A #33318A
triadic
#315B8A #8A315B #5B8A31
tetradic
#315B8A #8A3188 #8A6031 #318A33
square
#315B8A #8A3188 #8A6031 #318A33
split-complementary
#315B8A #8A3331 #888A31
monochromatic
#111F30 #213D5D #315B8A #4179B7 #6B98CA

Accessibility & contrast

On white

7.01
#315B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#315B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##315B8A#FFFFFF#000000##FFFFFF
##315B8A1.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)
#475E8C
Deuteranopia (green-blind)
#3B5589
Tritanopia (blue-blind)
#00666C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #315b8a;
/* rgb */ color: rgb(49, 91, 138);
/* oklch */ color: oklch(46.3% 0.090 252.7);
Tailwind
colors: {
  custom: {
    50: '#7289ac',
    500: '#315b8a',
    950: '#000000',
  },
}
SCSS
$custom: #315b8a;
$custom-light: #7289ac;
$custom-dark: #000000;
JSON
{
  "hex": "#315b8a",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 138
  },
  "hsl": {
    "h": 211.685,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46345,
    "c": 0.09032,
    "h": 252.7
  },
  "luminance": 0.0997
}

Semantic roles & 50–950 ramp

primary
#315B8A
secondary
#B28E65
accent
#9851D7
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #315B8A

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

Preview Lab → · Contrast checker → · Palette generator →

#315B8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva