#1F7FA8#1F7FA8

#1F7FA8 is a mid, moderate cyan. Relative luminance 0.183; OKLCH L 56.2% C 0.105 H 232.2°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#1F7FA8
RGBrgb(31, 127, 168)
HSLhsl(198, 69%, 39%)
HSVhsv(198, 82%, 66%)
CMYKcmyk(81.5%, 24.4%, 0%, 34.1%)
CIE-LABlab(49.85, -12.33, -29.42)
CIE-LCHlch(49.85, 31.90, 247.26°)
OKLaboklab(56.22% -0.0644 -0.0829)
OKLCHoklch(56.22% 0.105 232.2)
XYZxyz(15.2195, 18.2953, 39.7674)
Luminance0.1830 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7FA8 #A8481F
analogous
#1FA88D #1F7FA8 #1F3BA8
triadic
#1F7FA8 #A81F7F #7FA81F
tetradic
#1F7FA8 #8D1FA8 #A8481F #3BA81F
square
#1F7FA8 #8D1FA8 #A8481F #3BA81F
split-complementary
#1F7FA8 #A81F3B #A88D1F
monochromatic
#0C3141 #155874 #1F7FA8 #2CA5D8 #60BBE2

Accessibility & contrast

On white

4.51
#1F7FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#1F7FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F7FA8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7FA8#FFFFFF#000000##000000
##1F7FA81.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A7EAA
Deuteranopia (green-blind)
#5871A7
Tritanopia (blue-blind)
#008A8D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #1f7fa8;
/* rgb */ color: rgb(31, 127, 168);
/* oklch */ color: oklch(56.2% 0.105 232.2);
Tailwind
colors: {
  custom: {
    50: '#72a4c2',
    500: '#1f7fa8',
    950: '#000000',
  },
}
SCSS
$custom: #1f7fa8;
$custom-light: #72a4c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7fa8",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 168
  },
  "hsl": {
    "h": 197.956,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.56221,
    "c": 0.10503,
    "h": 232.2
  },
  "luminance": 0.18297
}

Semantic roles & 50–950 ramp

primary
#1F7FA8
secondary
#C67C5D
accent
#713CEC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#090F12
muted
#7B7F81

Preview Lab

Preview with #1F7FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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