#1F7AB4#1F7AB4

#1F7AB4 is a mid, vivid cyan. Relative luminance 0.175; OKLCH L 55.6% C 0.121 H 242.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#1F7AB4
RGBrgb(31, 122, 180)
HSLhsl(203, 71%, 41%)
HSVhsv(203, 83%, 71%)
CMYKcmyk(82.8%, 32.2%, 0%, 29.4%)
CIE-LABlab(48.89, -5.00, -37.89)
CIE-LCHlch(48.89, 38.22, 262.48°)
OKLaboklab(55.64% -0.0558 -0.1076)
OKLCHoklch(55.64% 0.121 242.6)
XYZxyz(15.7596, 17.5037, 45.7191)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7AB4 #B4591F
analogous
#1FB4A4 #1F7AB4 #1F2FB4
triadic
#1F7AB4 #B41F7A #7AB41F
tetradic
#1F7AB4 #A41FB4 #B4591F #2FB41F
square
#1F7AB4 #A41FB4 #B4591F #2FB41F
split-complementary
#1F7AB4 #B41F2F #B4A41F
monochromatic
#0D334C #165780 #1F7AB4 #349BDC #68B5E5

Accessibility & contrast

On white

4.67
#1F7AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#1F7AB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7AB4
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7AB4#FFFFFF#000000##FFFFFF
##1F7AB41.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F7CB7
Deuteranopia (green-blind)
#4A6EB3
Tritanopia (blue-blind)
#00888F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f7ab4;
/* rgb */ color: rgb(31, 122, 180);
/* oklch */ color: oklch(55.6% 0.121 242.6);
Tailwind
colors: {
  custom: {
    50: '#74a0cb',
    500: '#1f7ab4',
    950: '#000000',
  },
}
SCSS
$custom: #1f7ab4;
$custom-light: #74a0cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7ab4",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 180
  },
  "hsl": {
    "h": 203.356,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.55642,
    "c": 0.1212,
    "h": 242.6
  },
  "luminance": 0.17506
}

Semantic roles & 50–950 ramp

primary
#1F7AB4
secondary
#CB8C64
accent
#803AED
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #1F7AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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