#31758F#31758F

#31758F is a mid, moderate cyan. Relative luminance 0.154; OKLCH L 53.0% C 0.079 H 226.4°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#31758F
RGBrgb(49, 117, 143)
HSLhsl(197, 49%, 38%)
HSVhsv(197, 66%, 56%)
CMYKcmyk(65.7%, 18.2%, 0%, 43.9%)
CIE-LABlab(46.12, -12.92, -20.51)
CIE-LCHlch(46.12, 24.24, 237.78°)
OKLaboklab(53.02% -0.0544 -0.0573)
OKLCHoklch(53.02% 0.079 226.4)
XYZxyz(12.5839, 15.3574, 28.2824)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31758F #8F4B31
analogous
#318F7A #31758F #31468F
triadic
#31758F #8F3175 #758F31
tetradic
#31758F #7A318F #8F4B31 #468F31
square
#31758F #7A318F #8F4B31 #468F31
split-complementary
#31758F #8F3146 #8F7A31
monochromatic
#122A34 #215061 #31758F #419ABD #6DB3CD

Accessibility & contrast

On white

5.16
#31758F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#31758F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31758F
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31758F#FFFFFF#000000##FFFFFF
##31758F1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#677390
Deuteranopia (green-blind)
#5A698F
Tritanopia (blue-blind)
#007D7D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #31758f;
/* rgb */ color: rgb(49, 117, 143);
/* oklch */ color: oklch(53.0% 0.079 226.4);
Tailwind
colors: {
  custom: {
    50: '#749caf',
    500: '#31758f',
    950: '#000000',
  },
}
SCSS
$custom: #31758f;
$custom-light: #749caf;
$custom-dark: #000000;
JSON
{
  "hex": "#31758f",
  "rgb": {
    "r": 49,
    "g": 117,
    "b": 143
  },
  "hsl": {
    "h": 196.596,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.53018,
    "c": 0.07902,
    "h": 226.4
  },
  "luminance": 0.15359
}

Semantic roles & 50–950 ramp

primary
#31758F
secondary
#B57D67
accent
#754FD9
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #31758F

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

Preview Lab → · Contrast checker → · Palette generator →

#31758F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva