#1F798E#1F798E

#1F798E is a mid, moderate cyan. Relative luminance 0.159; OKLCH L 53.5% C 0.086 H 217.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#1F798E
RGBrgb(31, 121, 142)
HSLhsl(191, 64%, 34%)
HSVhsv(191, 78%, 56%)
CMYKcmyk(78.2%, 14.8%, 0%, 44.3%)
CIE-LABlab(46.87, -18.19, -18.81)
CIE-LCHlch(46.87, 26.16, 225.97°)
OKLaboklab(53.47% -0.0686 -0.0525)
OKLCHoklch(53.47% 0.086 217.4)
XYZxyz(12.2829, 15.9176, 28.0110)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F798E #8E341F
analogous
#1F8E6C #1F798E #1F428E
triadic
#1F798E #8E1F79 #798E1F
tetradic
#1F798E #6C1F8E #8E341F #428E1F
square
#1F798E #6C1F8E #8E341F #428E1F
split-complementary
#1F798E #8E1F42 #8E6C1F
monochromatic
#09232A #144E5C #1F798E #2AA4C0 #4FBED9

Accessibility & contrast

On white

5.02
#1F798E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#1F798E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F798E
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F798E#FFFFFF#000000##FFFFFF
##1F798E1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B758F
Deuteranopia (green-blind)
#5C6A8E
Tritanopia (blue-blind)
#008080
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f798e;
/* rgb */ color: rgb(31, 121, 142);
/* oklch */ color: oklch(53.5% 0.086 217.4);
Tailwind
colors: {
  custom: {
    50: '#6ea0af',
    500: '#1f798e',
    950: '#000000',
  },
}
SCSS
$custom: #1f798e;
$custom-light: #6ea0af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f798e",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 191.351,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.53466,
    "c": 0.08642,
    "h": 217.4
  },
  "luminance": 0.15919
}

Semantic roles & 50–950 ramp

primary
#1F798E
secondary
#BB624D
accent
#6041E7
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #1F798E

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

Preview Lab → · Contrast checker → · Palette generator →

#1F798E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva