#31738E#31738E

#31738E is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.5% C 0.079 H 228.0°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#31738E
RGBrgb(49, 115, 142)
HSLhsl(197, 49%, 37%)
HSVhsv(197, 65%, 56%)
CMYKcmyk(65.5%, 19%, 0%, 44.3%)
CIE-LABlab(45.45, -12.12, -20.94)
CIE-LCHlch(45.45, 24.20, 239.95°)
OKLaboklab(52.47% -0.0526 -0.0585)
OKLCHoklch(52.47% 0.079 228)
XYZxyz(12.2779, 14.8662, 27.8083)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31738E #8E4C31
analogous
#318E7A #31738E #31458E
triadic
#31738E #8E3173 #738E31
tetradic
#31738E #7A318E #8E4C31 #458E31
square
#31738E #7A318E #8E4C31 #458E31
split-complementary
#31738E #8E3145 #8E7A31
monochromatic
#122933 #214E61 #31738E #4198BB #6DB1CD

Accessibility & contrast

On white

5.29
#31738E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#31738E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31738E
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31738E#FFFFFF#000000##FFFFFF
##31738E1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65718F
Deuteranopia (green-blind)
#58678E
Tritanopia (blue-blind)
#007B7C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #31738e;
/* rgb */ color: rgb(49, 115, 142);
/* oklch */ color: oklch(52.5% 0.079 228.0);
Tailwind
colors: {
  custom: {
    50: '#749baf',
    500: '#31738e',
    950: '#000000',
  },
}
SCSS
$custom: #31738e;
$custom-light: #749baf;
$custom-dark: #000000;
JSON
{
  "hex": "#31738e",
  "rgb": {
    "r": 49,
    "g": 115,
    "b": 142
  },
  "hsl": {
    "h": 197.419,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.52469,
    "c": 0.07869,
    "h": 228
  },
  "luminance": 0.14867
}

Semantic roles & 50–950 ramp

primary
#31738E
secondary
#B47D67
accent
#7750D8
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #31738E

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

Preview Lab → · Contrast checker → · Palette generator →

#31738E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva