#31798E#31798E

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

Color values

HEX#31798E
RGBrgb(49, 121, 142)
HSLhsl(194, 49%, 37%)
HSVhsv(194, 65%, 56%)
CMYKcmyk(65.5%, 14.8%, 0%, 44.3%)
CIE-LABlab(47.34, -15.50, -18.04)
CIE-LCHlch(47.34, 23.79, 229.34°)
OKLaboklab(53.98% -0.0593 -0.0503)
OKLCHoklch(53.98% 0.078 220.3)
XYZxyz(12.9845, 16.2793, 28.0439)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31798E #8E4631
analogous
#318E74 #31798E #314B8E
triadic
#31798E #8E3179 #798E31
tetradic
#31798E #74318E #8E4631 #4B8E31
square
#31798E #74318E #8E4631 #4B8E31
split-complementary
#31798E #8E314B #8E7431
monochromatic
#122B33 #215261 #31798E #41A0BB #6DB7CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31798E#FFFFFF#000000##FFFFFF
##31798E1.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)
#6C768F
Deuteranopia (green-blind)
#5F6C8E
Tritanopia (blue-blind)
#008080
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #31798e;
/* rgb */ color: rgb(49, 121, 142);
/* oklch */ color: oklch(54.0% 0.078 220.3);
Tailwind
colors: {
  custom: {
    50: '#749faf',
    500: '#31798e',
    950: '#000000',
  },
}
SCSS
$custom: #31798e;
$custom-light: #749faf;
$custom-dark: #000000;
JSON
{
  "hex": "#31798e",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 193.548,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.5398,
    "c": 0.07774,
    "h": 220.3
  },
  "luminance": 0.16281
}

Semantic roles & 50–950 ramp

primary
#31798E
secondary
#B47867
accent
#6E50D8
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #31798E

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

Preview Lab → · Contrast checker → · Palette generator →

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