#1F7DA8#1F7DA8

#1F7DA8 is a mid, moderate cyan. Relative luminance 0.178; OKLCH L 55.7% C 0.106 H 233.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#1F7DA8
RGBrgb(31, 125, 168)
HSLhsl(199, 69%, 39%)
HSVhsv(199, 82%, 66%)
CMYKcmyk(81.5%, 25.6%, 0%, 34.1%)
CIE-LABlab(49.23, -11.19, -30.39)
CIE-LCHlch(49.23, 32.38, 249.78°)
OKLaboklab(55.73% -0.0625 -0.0858)
OKLCHoklch(55.73% 0.106 233.9)
XYZxyz(14.9637, 17.7838, 39.6822)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7DA8 #A84A1F
analogous
#1FA88F #1F7DA8 #1F39A8
triadic
#1F7DA8 #A81F7D #7DA81F
tetradic
#1F7DA8 #8F1FA8 #A84A1F #39A81F
square
#1F7DA8 #8F1FA8 #A84A1F #39A81F
split-complementary
#1F7DA8 #A81F39 #A88F1F
monochromatic
#0C3041 #155774 #1F7DA8 #2CA2D8 #60B9E2

Accessibility & contrast

On white

4.61
#1F7DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#1F7DA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7DA8
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7DA8#FFFFFF#000000##FFFFFF
##1F7DA81.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#687CAA
Deuteranopia (green-blind)
#566FA7
Tritanopia (blue-blind)
#00888C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f7da8;
/* rgb */ color: rgb(31, 125, 168);
/* oklch */ color: oklch(55.7% 0.106 233.9);
Tailwind
colors: {
  custom: {
    50: '#72a2c2',
    500: '#1f7da8',
    950: '#000000',
  },
}
SCSS
$custom: #1f7da8;
$custom-light: #72a2c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7da8",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 168
  },
  "hsl": {
    "h": 198.832,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.55727,
    "c": 0.10613,
    "h": 233.9
  },
  "luminance": 0.17786
}

Semantic roles & 50–950 ramp

primary
#1F7DA8
secondary
#C67E5D
accent
#733CEC
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090F12
muted
#7B7E81

Preview Lab

Preview with #1F7DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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