#1F7EA8#1F7EA8

#1F7EA8 is a mid, moderate cyan. Relative luminance 0.180; OKLCH L 56.0% C 0.106 H 233.0°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#1F7EA8
RGBrgb(31, 126, 168)
HSLhsl(198, 69%, 39%)
HSVhsv(198, 82%, 66%)
CMYKcmyk(81.5%, 25%, 0%, 34.1%)
CIE-LABlab(49.54, -11.76, -29.91)
CIE-LCHlch(49.54, 32.14, 248.53°)
OKLaboklab(55.97% -0.0635 -0.0843)
OKLCHoklch(55.97% 0.106 233)
XYZxyz(15.0909, 18.0383, 39.7246)
Luminance0.1804 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7EA8 #A8491F
analogous
#1FA88E #1F7EA8 #1F3AA8
triadic
#1F7EA8 #A81F7E #7EA81F
tetradic
#1F7EA8 #8E1FA8 #A8491F #3AA81F
square
#1F7EA8 #8E1FA8 #A8491F #3AA81F
split-complementary
#1F7EA8 #A81F3A #A88E1F
monochromatic
#0C3141 #155774 #1F7EA8 #2CA3D8 #60BAE2

Accessibility & contrast

On white

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

On black

4.61
#1F7EA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F7EA8
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7EA8#FFFFFF#000000##000000
##1F7EA81.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#697DAA
Deuteranopia (green-blind)
#5770A7
Tritanopia (blue-blind)
#00898C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f7ea8;
/* rgb */ color: rgb(31, 126, 168);
/* oklch */ color: oklch(56.0% 0.106 233.0);
Tailwind
colors: {
  custom: {
    50: '#72a3c2',
    500: '#1f7ea8',
    950: '#000000',
  },
}
SCSS
$custom: #1f7ea8;
$custom-light: #72a3c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7ea8",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 168
  },
  "hsl": {
    "h": 198.394,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.55974,
    "c": 0.10556,
    "h": 233
  },
  "luminance": 0.1804
}

Semantic roles & 50–950 ramp

primary
#1F7EA8
secondary
#C67D5D
accent
#723CEC
background
#F7FAFB
surface
#EEF3F7
border
#C9CDD0
text
#090F12
muted
#7B7F81

Preview Lab

Preview with #1F7EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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