#1F7DA6#1F7DA6

#1F7DA6 is a mid, moderate cyan. Relative luminance 0.177; OKLCH L 55.6% C 0.104 H 232.6°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#1F7DA6
RGBrgb(31, 125, 166)
HSLhsl(198, 69%, 39%)
HSVhsv(198, 81%, 65%)
CMYKcmyk(81.3%, 24.7%, 0%, 34.9%)
CIE-LABlab(49.14, -11.92, -29.37)
CIE-LCHlch(49.14, 31.69, 247.91°)
OKLaboklab(55.63% -0.0632 -0.0828)
OKLCHoklch(55.63% 0.104 232.6)
XYZxyz(14.7788, 17.7099, 38.7084)
Luminance0.1771 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7DA6 #A6481F
analogous
#1FA68B #1F7DA6 #1F39A6
triadic
#1F7DA6 #A61F7D #7DA61F
tetradic
#1F7DA6 #8B1FA6 #A6481F #39A61F
square
#1F7DA6 #8B1FA6 #A6481F #39A61F
split-complementary
#1F7DA6 #A61F39 #A68B1F
monochromatic
#0C2F3F #155672 #1F7DA6 #2BA3D7 #5EB9E1

Accessibility & contrast

On white

4.62
#1F7DA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#1F7DA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7DA6
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7DA6#FFFFFF#000000##FFFFFF
##1F7DA61.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#687CA8
Deuteranopia (green-blind)
#576FA5
Tritanopia (blue-blind)
#00888B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f7da6;
/* rgb */ color: rgb(31, 125, 166);
/* oklch */ color: oklch(55.6% 0.104 232.6);
Tailwind
colors: {
  custom: {
    50: '#72a2c0',
    500: '#1f7da6',
    950: '#000000',
  },
}
SCSS
$custom: #1f7da6;
$custom-light: #72a2c0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7da6",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 166
  },
  "hsl": {
    "h": 198.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.55625,
    "c": 0.10418,
    "h": 232.6
  },
  "luminance": 0.17712
}

Semantic roles & 50–950 ramp

primary
#1F7DA6
secondary
#C57C5B
accent
#723CEB
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090F12
muted
#7B7E81

Preview Lab

Preview with #1F7DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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