#1F7FB4#1F7FB4

#1F7FB4 is a mid, moderate cyan. Relative luminance 0.188; OKLCH L 56.8% C 0.117 H 239.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#1F7FB4
RGBrgb(31, 127, 180)
HSLhsl(201, 71%, 41%)
HSVhsv(201, 83%, 71%)
CMYKcmyk(82.8%, 29.4%, 0%, 29.4%)
CIE-LABlab(50.41, -7.95, -35.49)
CIE-LCHlch(50.41, 36.37, 257.38°)
OKLaboklab(56.85% -0.0603 -0.1006)
OKLCHoklch(56.85% 0.117 239.1)
XYZxyz(16.3894, 18.7633, 45.9290)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7FB4 #B4541F
analogous
#1FB49F #1F7FB4 #1F35B4
triadic
#1F7FB4 #B41F7F #7FB41F
tetradic
#1F7FB4 #9F1FB4 #B4541F #35B41F
square
#1F7FB4 #9F1FB4 #B4541F #35B41F
split-complementary
#1F7FB4 #B41F35 #B49F1F
monochromatic
#0D354C #165A80 #1F7FB4 #34A0DC #68B9E5

Accessibility & contrast

On white

4.42
#1F7FB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#1F7FB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F7FB4
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7FB4#FFFFFF#000000##000000
##1F7FB41.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#667FB6
Deuteranopia (green-blind)
#5272B3
Tritanopia (blue-blind)
#008C92
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f7fb4;
/* rgb */ color: rgb(31, 127, 180);
/* oklch */ color: oklch(56.8% 0.117 239.1);
Tailwind
colors: {
  custom: {
    50: '#75a4ca',
    500: '#1f7fb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f7fb4;
$custom-light: #75a4ca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7fb4",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 180
  },
  "hsl": {
    "h": 201.342,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.56847,
    "c": 0.11725,
    "h": 239.1
  },
  "luminance": 0.18765
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F7FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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