#1F7A9A#1F7A9A

#1F7A9A is a mid, moderate cyan. Relative luminance 0.165; OKLCH L 54.3% C 0.095 H 226.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#1F7A9A
RGBrgb(31, 122, 154)
HSLhsl(196, 66%, 36%)
HSVhsv(196, 80%, 60%)
CMYKcmyk(79.9%, 20.8%, 0%, 39.6%)
CIE-LABlab(47.68, -14.53, -24.63)
CIE-LCHlch(47.68, 28.60, 239.46°)
OKLaboklab(54.28% -0.0648 -0.0692)
OKLCHoklch(54.28% 0.095 226.9)
XYZxyz(13.3549, 16.5418, 33.0546)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A9A #9A3F1F
analogous
#1F9A7D #1F7A9A #1F3D9A
triadic
#1F7A9A #9A1F7A #7A9A1F
tetradic
#1F7A9A #7D1F9A #9A3F1F #3D9A1F
square
#1F7A9A #7D1F9A #9A3F1F #3D9A1F
split-complementary
#1F7A9A #9A1F3D #9A7D1F
monochromatic
#0A2934 #155267 #1F7A9A #29A2CD #56BADD

Accessibility & contrast

On white

4.87
#1F7A9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#1F7A9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A9A
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A9A#FFFFFF#000000##FFFFFF
##1F7A9A1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#69789C
Deuteranopia (green-blind)
#596C9A
Tritanopia (blue-blind)
#008385
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #1f7a9a;
/* rgb */ color: rgb(31, 122, 154);
/* oklch */ color: oklch(54.3% 0.095 226.9);
Tailwind
colors: {
  custom: {
    50: '#70a0b8',
    500: '#1f7a9a',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a9a;
$custom-light: #70a0b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a9a",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 154
  },
  "hsl": {
    "h": 195.61,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.5428,
    "c": 0.09477,
    "h": 226.9
  },
  "luminance": 0.16543
}

Semantic roles & 50–950 ramp

primary
#1F7A9A
secondary
#C17054
accent
#6B3EE9
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #1F7A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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