#1F7EB4#1F7EB4

#1F7EB4 is a mid, moderate cyan. Relative luminance 0.185; OKLCH L 56.6% C 0.118 H 239.8°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#1F7EB4
RGBrgb(31, 126, 180)
HSLhsl(202, 71%, 41%)
HSVhsv(202, 83%, 71%)
CMYKcmyk(82.8%, 30%, 0%, 29.4%)
CIE-LABlab(50.10, -7.36, -35.97)
CIE-LCHlch(50.10, 36.72, 258.43°)
OKLaboklab(56.61% -0.0594 -0.102)
OKLCHoklch(56.61% 0.118 239.8)
XYZxyz(16.2609, 18.5063, 45.8862)
Luminance0.1851 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7EB4 #B4551F
analogous
#1FB4A0 #1F7EB4 #1F34B4
triadic
#1F7EB4 #B41F7E #7EB41F
tetradic
#1F7EB4 #A01FB4 #B4551F #34B41F
square
#1F7EB4 #A01FB4 #B4551F #34B41F
split-complementary
#1F7EB4 #B41F34 #B4A01F
monochromatic
#0D354C #165980 #1F7EB4 #349FDC #68B8E5

Accessibility & contrast

On white

4.47
#1F7EB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#1F7EB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F7EB4
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7EB4#FFFFFF#000000##000000
##1F7EB41.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#647FB6
Deuteranopia (green-blind)
#5071B3
Tritanopia (blue-blind)
#008C91
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #1f7eb4;
/* rgb */ color: rgb(31, 126, 180);
/* oklch */ color: oklch(56.6% 0.118 239.8);
Tailwind
colors: {
  custom: {
    50: '#75a3ca',
    500: '#1f7eb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f7eb4;
$custom-light: #75a3ca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7eb4",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 180
  },
  "hsl": {
    "h": 201.745,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.56606,
    "c": 0.118,
    "h": 239.8
  },
  "luminance": 0.18508
}

Semantic roles & 50–950 ramp

primary
#1F7EB4
secondary
#CB8964
accent
#7B3AED
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #1F7EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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