#31798F#31798F

#31798F is a mid, moderate cyan. Relative luminance 0.163; OKLCH L 54.0% C 0.078 H 221.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#31798F
RGBrgb(49, 121, 143)
HSLhsl(194, 49%, 38%)
HSVhsv(194, 66%, 56%)
CMYKcmyk(65.7%, 15.4%, 0%, 43.9%)
CIE-LABlab(47.38, -15.17, -18.57)
CIE-LCHlch(47.38, 23.98, 230.76°)
OKLaboklab(54.02% -0.0589 -0.0518)
OKLCHoklch(54.02% 0.078 221.3)
XYZxyz(13.0599, 16.3095, 28.4410)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31798F #8F4731
analogous
#318F76 #31798F #314A8F
triadic
#31798F #8F3179 #798F31
tetradic
#31798F #76318F #8F4731 #4A8F31
square
#31798F #76318F #8F4731 #4A8F31
split-complementary
#31798F #8F314A #8F7631
monochromatic
#122C34 #215261 #31798F #41A0BD #6DB7CD

Accessibility & contrast

On white

4.93
#31798F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#31798F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31798F
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31798F#FFFFFF#000000##FFFFFF
##31798F1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C7690
Deuteranopia (green-blind)
#5F6C8F
Tritanopia (blue-blind)
#008080
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #31798f;
/* rgb */ color: rgb(49, 121, 143);
/* oklch */ color: oklch(54.0% 0.078 221.3);
Tailwind
colors: {
  custom: {
    50: '#749faf',
    500: '#31798f',
    950: '#000000',
  },
}
SCSS
$custom: #31798f;
$custom-light: #749faf;
$custom-dark: #000000;
JSON
{
  "hex": "#31798f",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 143
  },
  "hsl": {
    "h": 194.043,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.54024,
    "c": 0.07842,
    "h": 221.3
  },
  "luminance": 0.16311
}

Semantic roles & 50–950 ramp

primary
#31798F
secondary
#B57967
accent
#6F4FD9
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #31798F

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

Preview Lab → · Contrast checker → · Palette generator →

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