#1F798B#1F798B

#1F798B is a mid, moderate cyan. Relative luminance 0.158; OKLCH L 53.3% C 0.085 H 214.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#1F798B
RGBrgb(31, 121, 139)
HSLhsl(190, 64%, 33%)
HSVhsv(190, 78%, 55%)
CMYKcmyk(77.7%, 12.9%, 0%, 45.5%)
CIE-LABlab(46.75, -19.21, -17.22)
CIE-LCHlch(46.75, 25.80, 221.86°)
OKLaboklab(53.33% -0.0699 -0.048)
OKLCHoklch(53.33% 0.085 214.5)
XYZxyz(12.0607, 15.8287, 26.8407)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F798B #8B311F
analogous
#1F8B67 #1F798B #1F438B
triadic
#1F798B #8B1F79 #798B1F
tetradic
#1F798B #671F8B #8B311F #438B1F
square
#1F798B #671F8B #8B311F #438B1F
split-complementary
#1F798B #8B1F43 #8B671F
monochromatic
#092227 #144D59 #1F798B #2AA5BD #4DC0D7

Accessibility & contrast

On white

5.04
#1F798B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#1F798B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F798B
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F798B#FFFFFF#000000##FFFFFF
##1F798B1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C758C
Deuteranopia (green-blind)
#5E6A8B
Tritanopia (blue-blind)
#00807F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f798b;
/* rgb */ color: rgb(31, 121, 139);
/* oklch */ color: oklch(53.3% 0.085 214.5);
Tailwind
colors: {
  custom: {
    50: '#6da0ad',
    500: '#1f798b',
    950: '#000000',
  },
}
SCSS
$custom: #1f798b;
$custom-light: #6da0ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f798b",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 139
  },
  "hsl": {
    "h": 190,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53332,
    "c": 0.0848,
    "h": 214.5
  },
  "luminance": 0.1583
}

Semantic roles & 50–950 ramp

primary
#1F798B
secondary
#BA5E4C
accent
#5D41E7
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #1F798B

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

Preview Lab → · Contrast checker → · Palette generator →

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