#1F7EA7#1F7EA7

#1F7EA7 is a mid, moderate cyan. Relative luminance 0.180; OKLCH L 55.9% C 0.105 H 232.4°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#1F7EA7
RGBrgb(31, 126, 167)
HSLhsl(198, 69%, 39%)
HSVhsv(198, 81%, 65%)
CMYKcmyk(81.4%, 24.6%, 0%, 34.5%)
CIE-LABlab(49.50, -12.13, -29.39)
CIE-LCHlch(49.50, 31.80, 247.58°)
OKLaboklab(55.92% -0.0638 -0.0829)
OKLCHoklch(55.92% 0.105 232.4)
XYZxyz(14.9981, 18.0012, 39.2358)
Luminance0.1800 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7EA7 #A7481F
analogous
#1FA78C #1F7EA7 #1F3AA7
triadic
#1F7EA7 #A71F7E #7EA71F
tetradic
#1F7EA7 #8C1FA7 #A7481F #3AA71F
square
#1F7EA7 #8C1FA7 #A7481F #3AA71F
split-complementary
#1F7EA7 #A71F3A #A78C1F
monochromatic
#0C3040 #155773 #1F7EA7 #2BA4D8 #5FBAE1

Accessibility & contrast

On white

4.56
#1F7EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#1F7EA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F7EA7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7EA7#FFFFFF#000000##000000
##1F7EA71.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#697DA9
Deuteranopia (green-blind)
#5870A6
Tritanopia (blue-blind)
#00898C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f7ea7;
/* rgb */ color: rgb(31, 126, 167);
/* oklch */ color: oklch(55.9% 0.105 232.4);
Tailwind
colors: {
  custom: {
    50: '#72a3c1',
    500: '#1f7ea7',
    950: '#000000',
  },
}
SCSS
$custom: #1f7ea7;
$custom-light: #72a3c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7ea7",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 167
  },
  "hsl": {
    "h": 198.088,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.55923,
    "c": 0.10461,
    "h": 232.4
  },
  "luminance": 0.18003
}

Semantic roles & 50–950 ramp

primary
#1F7EA7
secondary
#C67C5C
accent
#713CEC
background
#F7FAFB
surface
#EEF3F7
border
#C9CDD0
text
#090F12
muted
#7B7F81

Preview Lab

Preview with #1F7EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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