#31517C#31517C

#31517C is a dark, moderate cyan. Relative luminance 0.080; OKLCH L 43.1% C 0.081 H 256.2°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#31517C
RGBrgb(49, 81, 124)
HSLhsl(214, 43%, 34%)
HSVhsv(214, 60%, 49%)
CMYKcmyk(60.5%, 34.7%, 0%, 51.4%)
CIE-LABlab(33.97, 2.33, -27.91)
CIE-LCHlch(33.97, 28.00, 274.78°)
OKLaboklab(43.12% -0.0193 -0.0788)
OKLCHoklch(43.12% 0.081 256.2)
XYZxyz(7.8459, 7.9924, 20.1941)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31517C #7C5C31
analogous
#31777C #31517C #37317C
triadic
#31517C #7C3151 #517C31
tetradic
#31517C #7C3177 #7C5C31 #317C37
square
#31517C #7C3177 #7C5C31 #317C37
split-complementary
#31517C #7C3731 #777C31
monochromatic
#0E1824 #203450 #31517C #426EA8 #658DC2

Accessibility & contrast

On white

8.08
#31517C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#31517C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31517C
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31517C#FFFFFF#000000##FFFFFF
##31517C1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F547E
Deuteranopia (green-blind)
#354D7B
Tritanopia (blue-blind)
#005B61
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #31517c;
/* rgb */ color: rgb(49, 81, 124);
/* oklch */ color: oklch(43.1% 0.081 256.2);
Tailwind
colors: {
  custom: {
    50: '#7081a2',
    500: '#31517c',
    950: '#000000',
  },
}
SCSS
$custom: #31517c;
$custom-light: #7081a2;
$custom-dark: #000000;
JSON
{
  "hex": "#31517c",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 124
  },
  "hsl": {
    "h": 214.4,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43116,
    "c": 0.08117,
    "h": 256.2
  },
  "luminance": 0.07993
}

Semantic roles & 50–950 ramp

primary
#31517C
secondary
#AA8A5F
accent
#9D55D3
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #31517C

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

Preview Lab → · Contrast checker → · Palette generator →

#31517C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva